Home Closing Smart App Banner in iOS Appium test
Reply: 1

Closing Smart App Banner in iOS Appium test

Laizer Published in 2017-11-14 19:33:37Z

I'm testing a website using Appium for iOS. The site has an associated app and uses Apple's Smart App Banners to promote the app. I'd like to test for the presence of the banner and close it at the beginning of my Appium test, but the banner doesn't appear to exist in the DOM. Is there any way to do this, short of mousing around with a pixel location?

dmle Reply to 2017-11-14 21:20:05Z

Try to switch to native context:


and check if it contains banner, for quick investigation you can print to console result of driver.getPageSource()

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.603977 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO