Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UFT issues with Outsystems dynamically generated Id/names
#1
Not Solved
Good evening all,   I was recently given a large number of UFT scripts to maintain (and very little training on how to do so).   One of the scripts is for a webpage developed on the Outsystems platform.  Outsystems dynamically generated ids and names for elements on the web screens and every time a new version is published many of the names/ids change.   I'm trying to determine if there is some way I can update these scripts so when the name changes my scripts won't continually break.

Below is an example of an input field that we use in the script.   Last month It was OutsystemsUIWeb_wt16 this month it changed to 17.   My assumption is each time there is a new release that value will continue to increment.   I notice that every month the name and Id both end with wtUserNameInput but I can't figure out a way to only look at that portion of the name or Id in my script.   I tried just saying *.wtUserNameInput but when the script runs the input is not found.   Any suggestions?

name="OutSystemsUIWeb_wt16$block$wtLogin$OutSystemsUIWeb_wt17$block$wtLogin$OutSystemsUIWeb_wt28$block$wtInput$wtUserNameInput" type="text" id="OutSystemsUIWeb_wt16_block_wtLogin_OutSystemsUIWeb_wt17_block_wtLogin_OutSystemsUIWeb_wt28_block_wtInput_wtUserNameInput" tabindex="5"
Reply
#2
Not Solved
Look at the \d option to handle dynamically changing values. I've not used it but I have seen several posts about it in these forums.
Reply
#3
Not Solved
I've not used the feature but I have seen several posts about using "\d" to dynamically handle numbers that change.

My guess is name=OutSystemsUIWeb_wt\d\d$block$wtLogin$OutSystemsUIWeb_wt\d\d$block$wtLogin$OutSystemsUIWeb_wt\d\d$block$wtInput$wtUserNameInput" type="text" id="OutSystemsUIWeb_wt\d\d_block_wtLogin_OutSystemsUIWeb_wt\d\d_block_wtLogin_OutSystemsUIWeb_wt\d\d_block_wtInput_wtUserNameInput" tabindex="5"

From what I've read, each "\d" handles 1 dynamically changing number.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to capture value of Webelement which is changing dynamically sheetal 9 16,208 02-16-2018, 11:01 AM
Last Post: janki_kakadia
  Unable to click on dynamically changing webelement preeti 0 1,807 04-29-2017, 08:50 PM
Last Post: preeti
  Test runned from QualityCenter generated an error "Attempted to divide by zero." robertosalemi 1 2,567 10-14-2016, 08:38 PM
Last Post: robertosalemi
  Script is not generated for windows application in UFT sreelatha 1 2,369 04-04-2016, 10:51 AM
Last Post: vinod123
  Issues while uft script execution Mrutyanjayam 0 1,798 10-03-2015, 01:46 AM
Last Post: Mrutyanjayam

Forum Jump:


Users browsing this thread: 1 Guest(s)