Appium Gesture functions: open notification pannel

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


driver.openNotifications();

 

Example:

Screen Shot 2017-09-17 at 8.49.44 PM

driver.openNotifications();
// 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();
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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