01-25-2010, 10:28 AM
Hi Blinza,
Have you gone through QTP User guide /QTP tutorial? I would suggest you to go through QTP tutorial once before jumping to the scripting.
answer for your questions
1)How to compare value of some web element (e.g. google - number of found results). Tried to use Val(WebElement) but it throws an error
- to get the value for webelement or any object you should use 'GetROProperty'
2) Why I cannot use "Dim A as Integer"? I thought its just VB there.
QTP does not supports data types so you cant use 'as Data Type' all variables will be type of variant.
3)Why debugging is still disabled except from Run to step and why breakpoints does not stop the test?
more explanation required on what do you mean by 'still disabled', QTP tests stops at breakpoints, how did you used that?
Have you gone through QTP User guide /QTP tutorial? I would suggest you to go through QTP tutorial once before jumping to the scripting.
answer for your questions
1)How to compare value of some web element (e.g. google - number of found results). Tried to use Val(WebElement) but it throws an error
- to get the value for webelement or any object you should use 'GetROProperty'
2) Why I cannot use "Dim A as Integer"? I thought its just VB there.
QTP does not supports data types so you cant use 'as Data Type' all variables will be type of variant.
3)Why debugging is still disabled except from Run to step and why breakpoints does not stop the test?
more explanation required on what do you mean by 'still disabled', QTP tests stops at breakpoints, how did you used that?