Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check two different webelement values
#1
Not Solved
I need to verify the shipping value and total value after adding the items into basket. Both the objects are weblements.. i have added one object in repository and written the statement to retrieve the weblement value using getroproperty and in the OR i have used regular expression for innertext property..when i try to add other webelement its identifying the same first already added weblement..i need to verify the both the values...there is no table..only browser(...).page(..).webelement....please help me in this regard how to retrieve both the values...is there any possible solution for this..


This was the case where for both its considering the same weblement even if the both values are at different place in the application

Code:
aShipQty = Browser("...").Page("...").WebElement("Quantity").GetROProperty("innertext")
PRINT aShipQty
aTotal = Browser("...").Page("...").WebElement("Quantity").GetROProperty("innertext")
PRINT aTotal
Reply


Messages In This Thread
How to check two different webelement values - by automation2012 - 08-28-2012, 06:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation WebElement("WebElement").Click is not working sia sharma 7 23,917 09-28-2016, 08:58 PM
Last Post: supputuri
  Webelement Values profqa 1 2,393 01-05-2015, 11:07 PM
Last Post: supputuri
  Compare Webelement with Datatable Values hamzaz 1 4,589 04-29-2012, 06:38 PM
Last Post: srikanthqtp
  Does QTP 9.0 supports drag & drop functionality check for webelement? jyotikrushna 1 4,131 01-13-2010, 01:33 PM
Last Post: 1981.madhu@gmail.com
  how to validate combobox values with testdata values 1981.madhu@gmail.com 3 5,897 09-09-2009, 06:53 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)