appium

apk does not have INTERNET permissions. Selendroid needs internet permission to proceed

喜你入骨 提交于 2019-12-11 10:50:54
问题 I am using android 4.1.2 whose APK level is 16. This is my python code : def setUp(self): "Setup for the test" desired_caps = {} desired_caps['automationName']='Selendroid' desired_caps['browserName']='' desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.1.2' desired_caps['deviceName'] = 'd65d04425101de' # Returns abs path relative to this file and not cwd desired_caps['app'] = '/home/karthik/appiumworkspace/tests/app-debug (2).apk' desired_caps['appPackage'] = 'com

real device Vs emulator : uiautomator does not show resource-id for the app

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 10:47:48
问题 I need the element id for my appium - android automation testing. When I use real device with UIAUTOMATOR, I get the resource - id to interact with the element like : driver.findElementById("com.xyz.android:id/GSG"); However, when I use an emulator with my UIAUTOMATOR , there is no resource - id for the same elements and my script is also not able to interact with the element based on my real device id...any help as to how to fix this or why it behaves like this? 回答1: I found the answer using

How to retrieve a .app file from the .xcarchive?

∥☆過路亽.° 提交于 2019-12-11 10:28:09
问题 I am trying to use Appium to automate our mobile app, and I realize that in order to do so we need to specify the path to .app file. However after archiving I get only the .xcarchive file which I don't know what to do next.. My xcode version is 5.1. Please advise how to proceed, thanks! 回答1: Two options: Build an .ipa instead of .xcarchive (Instructions here) Appium's --app arugment accepts .ipa's as well as .app's and even .zip files. (Try pointing it at .xcarchive! I have no idea if it'll

Get all child notes only one level lower from parent object in Appium (Android)

邮差的信 提交于 2019-12-11 10:14:36
问题 I write an automation testing software and have one problem now. In my actual native app I have a ListView like this here: ListView LinearLayout LinearLayout LinearLayout TextView LinearLayout LinearLayout LinearLayout LinearLayout LinearLayout ... ... and more. What I need and want is to get all one level lower LinearLayout (iterative ones, visible and non visible elements) from ListView : ListView : {LinearLayout, LinearLayout, ...} With that code I get all childs from ListView, but its to

About using Selenium in my first android app

♀尐吖头ヾ 提交于 2019-12-11 10:14:34
问题 After finishing my desktop software that use selenium to sendkeys and get a screenshot for the captcha, i'm trying now to build it for android, but i don't know from where i need to start, i searched alot about how can i send editText's values that have email,password and captcha to a website Do i need to install android-server.apk besides my app ? because the software i built use phantomjs.exe i added selenium lib and java-client to add as library and sync, but i still can't import the

Appium Inspector not able to load image

﹥>﹥吖頭↗ 提交于 2019-12-11 09:56:39
问题 Details : Appium 1.4.13 ; Mac OSX While this feature was working fine until some time back before the 1.4.13 was released but ever since then I am unable to refresh the view of the Appium Inspector for my application. The hierarchy is loaded but the IMAGE is not displayed. Even on clicking Refresh the following logs are generated : 2015-11-20 06:16:33:244 - info: --> GET /wd/hub/session/95abc888-6917-45c7-b004-155de500244e/source {} 2015-11-20 06:16:33:244 - info: [debug] Pushing command to

Unlock android mobile with PIN code programmatically Selenium mobile automation

安稳与你 提交于 2019-12-11 08:25:20
问题 I have a task that I need to write Android mobile test automation using Appium and selenium in Java.I have to do scenario that phone has to be unlock using PINCODE pro-grammatical way. Is there anyway to unlock android mobile in automation tests using pincode? Can anyone give me any suggestions to do this task. 回答1: There is no capability in Appium to unlock the pattern/pin lock though appium can wake our device up. To lock/Unlock the screen we need to use ADB commands, below are few examples

How to perform click/tap operation to the perticular bound/co-ordinates in python script for Android UI using appium

纵饮孤独 提交于 2019-12-11 08:03:30
问题 I am writing testcases in python script for android application using appium. I want to perform click/tap operation in a particular bounds/co-ordinates. but I am not able to perform it.Can any one tell me how to do it. class firstTest(unittest.TestCase): def tearDown(self): "Tear down the test" self.driver.quit() def test_single_player_mode(self): time.sleep(5) element = self.driver.find_element_by_name("Enter your Email ID or User name") element.send_keys("username") element = self.driver

After dismissing the alert appium is no longer detecting any element on the screen

半世苍凉 提交于 2019-12-11 07:38:16
问题 Basically everything works until a notification is displayed on screen. After i dismiss the alert i, appium is no longer detecting any of my buttons, fields, etc. The only things that works is if i put the app in background and resume it. After resume everything works. (i`m using Appium 1.6.4, with Android 7.0). Any hint here? 回答1: It is known issue in appium project. Workaround that I use: get coordinates (x, y) of any element on screen before opening dialog interact with dialog (e.g. select

How to detect the state of a Webelement if only it's colour changes

馋奶兔 提交于 2019-12-11 06:54:56
问题 My problem is this: I have an application and I have to decide the state of an element. The element can have two states, in position number 1 - it has black background in position number 2 - it has white background. Nothing else changes on it, nor it's size, nor it's value, nor it's name, nor it's visibility, nor it's enabled value nothing... Only it's background colour. Imagine it like if you had a button on the screen and tapping on it changes only it's background. Do you have any idea what