Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

Advice on where Axe can best handle popups

Axe v3.3/ Webdriver

Hi

Since switching to WebDriver (which more natively replicates how browsers are used by users), we have a need to handle three popups which appear after logging onto the system under test.

I think the correct WebDriver code to use would be something like:
IAlert alert = driver.SwitchTo().Alert();
alert.Accept();

Can you suggest the best place to handle these popups?  As they only occur on the homepage, I was attempting to identify and dismiss them as part of the SetWindow function which exists in the _testSuffix action in the ActionMap, however, this step seems to pass regardless of any code added.

Thanks
Mark Winspear Send private email
Thursday, September 6, 2012
 
 
nb - axe returns "Modal dialog present (UnexpectedAlertOpen)"
Mark Winspear Send private email
Thursday, September 6, 2012
 
 
Hi Mark,

A good approach to this may be to create a custom object for the popup itself so that it is implicitly reffered to in the header of the subtest. In that case you would create an action for the popup, maybe set.ok or set.close that would dismiss it mapping to the code you mention.

Plese drop a note to support@odintech.com if you want to explore further.

Cheers,

Duncan
Duncan Brigginshaw Send private email
Friday, September 7, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics