appium-android

How to download Appium Desktop in Ubuntu 16

只谈情不闲聊 提交于 2019-12-08 06:13:14
问题 I am trying to download Appium Desktop in Ubuntu 16 (I've just been using the terminal to run it so far). I understand that for Ubuntu, I must download the source code release they have on git (Source Code tar.gz), as apposed to their .exe (windows) or .dmg (mac) releases. After downloading it and un-tarring it, I do not know how to "install" it. I tried reading the README.md, but cannot find the instruction. How to do this? Many thanks in advance 回答1: 1.2.0-beta.2 offers an AppImage for

Open Chrome in incognito mode on real Android Device using Appium

半世苍凉 提交于 2019-12-04 05:11:33
问题 I'm using Appium to test my website on Chrome for Android. I would like to add some options to Chrome for Android such as the incognito mode and the possibility to disable the cache. I tried with the following sample code but it doesn't work properly. Appium is able to open Chrome on my Android device, but it isn't in incognito mode and hence it doesn't disable the browser's cache. Here there is the code snippet of my Python script: import appium from time import sleep desired_caps = {

Open Chrome in incognito mode on real Android Device using Appium

这一生的挚爱 提交于 2019-12-02 07:52:22
I'm using Appium to test my website on Chrome for Android. I would like to add some options to Chrome for Android such as the incognito mode and the possibility to disable the cache. I tried with the following sample code but it doesn't work properly. Appium is able to open Chrome on my Android device, but it isn't in incognito mode and hence it doesn't disable the browser's cache. Here there is the code snippet of my Python script: import appium from time import sleep desired_caps = { 'platformName' : 'Android', 'platformVersion' : '7.1.1', 'deviceName' : 'ZX1G423BZQ', 'browserName' : 'Chrome

How to locate a button with a dynamicID

让人想犯罪 __ 提交于 2019-11-29 18:51:39
I am automating an Android app using Appium where we need to click a button with a dynamic ID. Either the button has ID "PROFILEBUTTON" or ID "PROFILEMAILBUTTON". Apart from co-ordinates, what else can be used to automate clicking this button? To identify an element with dynamic ID either PROFILEBUTTON or PROFILEMAILBUTTON you can use cssSelector with the following wildcards : ^ : To indicate an attribute value starts with $ : To indicate an attribute value ends with So the most granular locator would include the strategy to lookout for the initial letters i.e. PROFILE and the ending letters i

Android - Appium Swipe down not working

不问归期 提交于 2019-11-29 08:07:50
I am trying to swipe down contact screen but its not working. Here is the code I have tried. public void Swipedown() throws InterruptedException { // Select till which position you want to move the seekbar TouchAction action=new TouchAction((PerformsTouchActions) driver); Dimension dimensions = driver.manage().window().getSize(); action.press(446,1404).moveTo(554,1500).release().perform(); System.out.println("swipe down to set seekbar successfully"); Thread.sleep(5000); } Can you guys help me what I am doing wrong here. Any help will be highly appreciated. Use below method for swiping down/up:

How to locate a button with a dynamicID

你离开我真会死。 提交于 2019-11-28 14:03:26
问题 I am automating an Android app using Appium where we need to click a button with a dynamic ID. Either the button has ID "PROFILEBUTTON" or ID "PROFILEMAILBUTTON". Apart from co-ordinates, what else can be used to automate clicking this button? 回答1: To identify an element with dynamic ID either PROFILEBUTTON or PROFILEMAILBUTTON you can use cssSelector with the following wildcards : ^ : To indicate an attribute value starts with $ : To indicate an attribute value ends with So the most granular

Android - Appium Swipe down not working

耗尽温柔 提交于 2019-11-28 02:01:07
问题 I am trying to swipe down contact screen but its not working. Here is the code I have tried. public void Swipedown() throws InterruptedException { // Select till which position you want to move the seekbar TouchAction action=new TouchAction((PerformsTouchActions) driver); Dimension dimensions = driver.manage().window().getSize(); action.press(446,1404).moveTo(554,1500).release().perform(); System.out.println("swipe down to set seekbar successfully"); Thread.sleep(5000); } Can you guys help me