How to recognize the page in QTP?

Suppose there is a link on a web page. On clicking that link, 6 different web pages open in separate browser windows. The title of the page changes at run time. There is a text box on the sixth page. The name of the text box also changes at runtime.

Requirement:

Write a piece of code to access the text box and fill in your name in it.

Questions by Nitin_QTP

Showing Answers 1 - 2 of 2 Answers

Try this:

Browser("micClass:=browser").Page("micClass:=Page").WebEdit("name:=regex.*", "index:=0").Set "SomeValue"

Substitute regex (regular expression) a value that will match WebEdit description.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions