How do I capture the dynamic Web element text .
Hi ..I am trying to capture the dynamic web element text through following code.My problem is that the web element i am trying to capture is web table and I have to get the text inside the web table.I am using getroproperty :
This code works fine for one run .Since the value i am trying to capture is dynamic number , the second time i try to run i get the error that the qtp is not able to recognise the object and the object doesn't exist. Can anyone please help me on this?I have objects already added to the repository.Please [stupid is as stupid does] help is needed.
Re: How do I capture the dynamic Web element text .
Is there anything else you could use to uniquely identify the WebTable, index (index is only useful if the page structure is static) or a regular expression perhaps?
Re: How do I capture the dynamic Web element text
1) Handling with html id
Check if the WebElement has static html id property defined.
msg=Browser("Broswer").Page("page").Webelement("ht ml id:=blah").Getroproperty("innertext").
2) Handling with WebElement's parent webtable object.
You need to get the control of WebElement's parent Webtable object and then use GetCellData.