12-12-2008, 11:00 PM
Hello, I am new to this forum but have started to use QTP 9.5. I have some simple questions that I hope can be answered on this forum.
I have a web based application and am attempting to pull information ("scrape") from some of the objects.
Two in particular. A textbox (WebEdit type object) and a WebElement type object. In both cases I have noticed a few things -
For a WebEdit type object , I cannot use the GetROProperty method to pull the string that is displayed on the app form (this is the VALUE propety).
For WebElement objects, GetROproperty works to pull the INNERTEXT property, but it pulls it from the object that resides in the repository. Thats fine for static data, but not if something changes (like Date Requested).
For the both of the above, running the Check (CheckPoint) method works fine to show if a change has occured.
My goal - for both objects, pull the INNERTEXT and VALUE values displayed on the app into a string and write out to a file if I need to.
Does anyone have any suggestions? Especially for WebEdit type objects?
Some things I have attempted -
1. Using the GetProperty(s) method - I wasn't able to pull the VALUE property into a variable.
2. Setting the actual string in the VALUE properties box as an inner enviornment but was not succesful (i probably screwed something up here).
Thanks again for any help.
I have a web based application and am attempting to pull information ("scrape") from some of the objects.
Two in particular. A textbox (WebEdit type object) and a WebElement type object. In both cases I have noticed a few things -
For a WebEdit type object , I cannot use the GetROProperty method to pull the string that is displayed on the app form (this is the VALUE propety).
For WebElement objects, GetROproperty works to pull the INNERTEXT property, but it pulls it from the object that resides in the repository. Thats fine for static data, but not if something changes (like Date Requested).
For the both of the above, running the Check (CheckPoint) method works fine to show if a change has occured.
My goal - for both objects, pull the INNERTEXT and VALUE values displayed on the app into a string and write out to a file if I need to.
Does anyone have any suggestions? Especially for WebEdit type objects?
Some things I have attempted -
1. Using the GetProperty(s) method - I wasn't able to pull the VALUE property into a variable.
2. Setting the actual string in the VALUE properties box as an inner enviornment but was not succesful (i probably screwed something up here).
Thanks again for any help.