How to handle native iOS Alerts in Appium using Java
I try to write tests for an app, which shows iOS native alert for Location (This app would like to use your current location). I tried this code
This actually works for other alerts, but not for native ones.
Also I noticed, that since 2nd time I run a test(even there is nothing but an sysout), it fails because of SessionNotCreatedException, but if I remove that alert from app, everything is ok.
I use Appium 1.3.4.
Thanks in advance.
- How to send PDF file data as a response using Servlet?
- How to synchronize data amongst devices in Wi-Fi
- Java 2012-006 update broke xCode Uploading
- Java APNS Certificate Error with “DerInputStream.getLength(): lengthTag=109, too big.”
- is there a replacement for Shark in xcode 4?
- Compare Protocol in Swift vs Interface in Java
Solutions Collect From Internet About “How to handle native iOS Alerts in Appium using Java”
Try adding to your Desired Capabilities
It doesn’t work perfectly but you should try it.
You can also try doing:
Hope this helps.
- iOS presenting view controller animated as 'Push' (right-left animation)
- SKCropNode fails when I add extra SKNode children in hierarchy
- How can I do programmatically gradient border color UIButton with Swift
- Copy Folder (w/contents) from bundle to Documents directory – iOS
- iOS: How to get the current visible keyboard type?
- iPhone cannot create CGBitmapContext
- Swift – using timers/system clock/background threads to do something in my application every hour
- Bullet list and Numbered list in UITextView
- Programmatically change rootViewController of storyBoard
- UIImageView Transform Scale
- Using UITouch inside a UIScrollView
- iPhone application is crashing and not leaving behind a .crash log file
- AVAudioPlayer turns off iPod – how to work around?
- How to invoke method with CVaListPointer parameters in Swift
- Using C++0x in Xcode 4.2 project via CMake