Popup screen : Object Identification and Technologies

Popup screen

Technology specific object identification, supported applications, web technologies, and 3rd party controls.

Popup screen

Postby omayer » Fri Aug 12, 2011 6: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);

 
  if(exists)
     
  {          
      // 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
    button.Click();
  }


Thanks,
Beginner
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: Popup screen

Postby Ciege » Fri Aug 12, 2011 6: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!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: Popup screen

Postby omayer » Fri Aug 26, 2011 3:06 pm

issue resolved, java script got triggerred before click on next step to get the popup.
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm


Return to Object Identification and Technologies

Who is online

Users browsing this forum: No registered users and 0 guests