Popup screen

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Popup screen

Post by omayer » Fri Aug 12, 2011 5:13 pm

Cann't find the Ok bttn on popup screen using the following code, popup at 3r layer and triggers by enterring invalid data , .... Main page > Form > popup. ...any Suggestion please

Code: Select all

    bool exists = Validate.Exists(repo.ErrorPopUp.ButtonOKInfo, "popup Email Alert'{0}'",false);
  	 // Identify the webdocument by its title   
	 WebDocument webDocument = "/Container[@caption='Very quick check ']"; 
  	//find the ok bttn on dialogue
     Ranorex.Button button = webDocument.FindSingle("/form[@title='Message from webpage']/button[@text='OK']");
   //send screenshot to report
     Report.Screenshot("/form[@title='Message from webpage']" + "email validation pass");
    //click ok on popup

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Popup screen

Post by Ciege » Fri Aug 12, 2011 5:31 pm

Please post a RanorexSpy snapshot of the form.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!


Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Popup screen

Post by omayer » Fri Aug 26, 2011 2:06 pm

issue resolved, java script got triggerred before click on next step to get the popup.