Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
verying Text in WebButton
#1
Solved: 10 Years, 9 Months ago
Hi,

I am very much new to QTP and working some web sites.
I am working on weblist which contains multiple values and when ever a value from the drop down is selected, the text of the Web Button changes according to the value selected.
Ex - if the drop down value is Red, the Save button would be " save RED" and it changes if the value is selected as "green". ( "save Green")
To select the value from Weblist, i am using For loop but the web button is not identified the by the qtp when ever the value is changed.
Note - it works fine with first value of the drop down.
I have checked by enabling the smart identification and later disabled it.
QTP gives error as " web button has same properties values, use different properties values to identify the object uniquely."

Kindly Help.

Thanks in Advance!
Reply
#2
Solved: 10 Years, 9 Months ago
Use regular expression for this.
Reply
#3
Solved: 10 Years, 9 Months ago
try using

Code:
Browser().Page().WebButton("name:=save.*").click

or else you can go for select case if at all the above solution is not working.

Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to click on webbutton Zalavadia86 3 2,140 10-24-2016, 11:32 PM
Last Post: frebuffi
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,542 09-13-2015, 12:06 AM
Last Post: ADITI1992
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,288 08-13-2013, 08:37 PM
Last Post: excellentpawan
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 4,772 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  Not Able to Click on a webbutton silpavinod 6 4,518 10-17-2012, 12:09 AM
Last Post: agarwl.anurag

Forum Jump:


Users browsing this thread: 1 Guest(s)