Alert alert = driver.switchTo().alert();
Thread.sleep(4000);
if(alert!=null)
{
Assert.assertEquals(alert.getText(), "“XXXX” Would Like to Use Your Current Location");
alert.dismiss();
}
--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
info: [INST] 2013-07-29 21:12:23 +0000 Default: Instruments shell user: lkunginfo: [INST] 2013-07-29 21:12:25 +0000 Default: Found node using `which node`: /usr/local/bin/nodeinfo: [INST] 2013-07-29 21:12:35 +0000 Fail: Could not start script, target application is not frontmost.Instruments Trace Complete (Duration : 15.988870s; Output : /Users/lkung/Documents/appium/instrumentscli0.trace)
info: [INSTSERVER] Instruments exited with code 0error: Instruments did not launch successfully, failing sessionerror: Failed to start an Appium session, err was: Instruments did not launch successfully--please check your app paths or bundle IDs and try againinfo: Responding to client with error: {"status":6,"value":{"message":"A session is either terminated or not started","origValue":"Instruments did not launch successfully--please check your app paths or bundle IDs and try again"},"sessionId":"b988bc97-a642-4cb4-b2100-12a8ab70d754"}