The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Oracle e-Test

Pages: 1
stevig
Junior Member


Reged: 10/28/03
Posts: 10
Loc: San Antonio, Texas
New to OATS Question about Popups
      #646001 - 10/19/10 01:07 PM

I am evaluating OATS against our application. There seems to be a recognition problem with popup boxes. After a save, we have a popup confirmation with an OK button. Openscript does not find this on playback. Even though during recording, the identify was used in show path and correctly displayed and saved. Any ideas please?

Post Extras: Print Post   Remind Me!   Notify Moderator  
ajithcharles
Newbie


Reged: 03/02/10
Posts: 6
Loc: India
Re: New to OATS Question about Popups [Re: stevig]
      #657526 - 01/24/11 06:23 AM

Hi Stevig,

I tried the same on ATS 9.2
The following is the sample code i've copied from the run method

beginStep("[1] Tryit Editor v1.4 (/tryit.asp)", 0);
{
web.window(18, "/web:window[@index='0' or @title='about:blank']").navigate("http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert");
web.window(19, "/web:window[@index='0' or @title='Tryit Editor v1.4']").waitForPage(null);
{
think(0.0);
}
web.button(24, "/web:window[@index='0' or @title='Tryit Editor v1.4']/web:document[@index='4' or @name='view']/web:input_button[@value='Show alert box' or @index='0']").click();
{
think(1.5);
}
web.alertDialog(25, "/web:dialog_alert[@text='Hello! I am an alert box!' and @index='0']").clickOk();
{
think(2.64);
}
web.window(26, "/web:window[@index='0' or @title='Tryit Editor v1.4']").close();
}
endStep();



Note :
web.alertDialog(25, "/web:dialog_alert[@text='Hello! I am an alert box!' and @index='0']").clickOk();

This takes care of the alert box.

--------------------
http://atsopenscript.blogspot.in/
http://ajithcharles.blogspot.in/


Post Extras: Print Post   Remind Me!   Notify Moderator  
stevig
Junior Member


Reged: 10/28/03
Posts: 10
Loc: San Antonio, Texas
Re: New to OATS Question about Popups [Re: ajithcharles]
      #659826 - 02/09/11 09:54 AM

Thanks for the replies. I was using openscript from version 9.0 when I made the original post. I am now evaluating 9.2 and have not encountered this problem since upgrading the version.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  Joe Strazzere, martinh, AJ 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3483

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5