Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check current active screen?
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I am in Page1, where I will be entering customer name, if i click on Next button, If Customer name already exist, it will throw error message. if not it will take you to next screen.

Please help me how to write code in QTP.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
If Browser("Home").Page("Home").WebElement("<ErrorMessage>").Exist then
    ...enter a new customer name to remove the error message
     Browser("Home").Page("Home").Webbutton("Next>>).click
End If
insert a check point on some element which confirms that the new page is loaded fully upon clicking next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  active screen in uft one koslender 0 1,434 12-01-2020, 05:45 PM
Last Post: koslender
  Find a value in SAPGUILabel Screen jimgral 0 3,153 07-14-2016, 01:46 PM
Last Post: jimgral
  Select Current Date from a Calendar Control qtpbeginner78 11 25,418 06-04-2013, 05:38 AM
Last Post: qtpbeginner78
  .Sync is NOT waiting for browser to complete current navigation.. can anyone help? mansis 4 4,603 09-14-2012, 06:53 PM
Last Post: mansis
  Current Test in folder option Kakashi 1 2,667 02-15-2012, 11:12 PM
Last Post: inborntester

Forum Jump:


Users browsing this thread: 1 Guest(s)