Axe Test Automation PlatformGeneral discussion relating to the Axe Test Automation Platform from Odin Technology |
||
Posts by Odin employees marked:
|
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
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 |