Appium Gesture functions: open notification pannel

In case you want interact with notification on android device, appium have a method to open it.




Screen Shot 2017-09-17 at 8.49.44 PM

// enable auto-rotate
driver.findElementByAccessibilityId("Auto-rotate screen").click();
// enable do not disturb mode
driver.findElementByAccessibilityId("Do not disturb.").click();
//air plane mode
driver.findElementByAccessibilityId("Airplane mode").click();

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s