appium

RobotFramework - Run Tests on different environments

假装没事ソ 提交于 2020-01-06 05:27:04
问题 I need to run specific tests for specific environments QA, Dev, Test etc., I have put a Tag on different tests i want to run on different, I am using AppiumLibrary as I am working on a mobile device, I was thinking to use a text file with all variables i need to execute for specific enviroments something like this. --variable Env:http://example.test.com:1111 --variable remoteUrl:http://127.0.0.1:123/web/hub --variable platformVersion:8.0 --variable platformName:Android --variable deviceName

Dismissing keyboard in appium test on iOS

最后都变了- 提交于 2020-01-06 05:08:08
问题 How do you dismiss the keyboard in an Appium test on iOS? I get this entry in the console after entering text [INSTSERVER] Sending command to instruments: if (!au.mainApp().keyboard().isNil()) { var key = au.mainApp().keyboard().buttons()['Done'] if (key.isNil()) { var startY = au.mainApp().keyboard().rect().origin.y - 10; var endY = au.mainWindow().rect().size.height - 10; au.flickApp(0, startY, 0, endY); } else { key.tap(); } au.delay(1000); } I can see it is assuming the button is 'Done'

how to launch appium node server through cmd prompt in windows 7 machine

流过昼夜 提交于 2020-01-06 02:55:28
问题 I am doing mobile automation using appium with selenium. I willing to run the appium server using commands through cmd prompt in windows machine. Could any one help how to run through cmd prompt and what is the command to run it without clicking launch button in appium.exe. Please anyone help me.Thanks in advance. 回答1: You can do this using Appium Support Library: <dependency> <groupId>com.github.genium-framework</groupId> <artifactId>Appium-Support</artifactId> <version>1.0.5</version> <

Vertical scrolling in Android app using Appium-Python

為{幸葍}努か 提交于 2020-01-06 02:40:14
问题 Following is the UI for android app. In this a UI of Friends list is visible. It have total number of 26 friends. I want to scroll the UI and want to see all the friends. I want to do this by Python-Appium. I am not able to scroll it. How to do it? It have resource-id, class name, package name and i have bounds values and that is [0,161][540,887]. 回答1: I had same problem. Most of the suggested solutions didn't work. Anyways, I found a solution you can see below: # import touch events from

Appium test launch fails on multiple devices

偶尔善良 提交于 2020-01-06 01:26:13
问题 I am working on Windows 7 machine and trying to implement an Appium test to launch on 2 real Android devices parallel. I was able to launch on each of the 2 devices separately and test executed as expected but simultaneous launch using JUnit fails with following stacktrace for one of devices: info: [debug] Pushing command to appium work queue: ["element:getText",{"elementId":"2"}] info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getText","params":{

Appium test launch fails on multiple devices

烂漫一生 提交于 2020-01-06 01:26:04
问题 I am working on Windows 7 machine and trying to implement an Appium test to launch on 2 real Android devices parallel. I was able to launch on each of the 2 devices separately and test executed as expected but simultaneous launch using JUnit fails with following stacktrace for one of devices: info: [debug] Pushing command to appium work queue: ["element:getText",{"elementId":"2"}] info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"element:getText","params":{

Appium automation test: How to get element or text from custom UI in android [android.view.View]

别来无恙 提交于 2020-01-05 09:26:49
问题 I beginner test automation on Android by Appium. I use IUAtomatorviewer to get eLement from Android Application But i think my applicatoin is from customs UI. i see that is android.support.v7.widget.RecyclerView / android.view.View in [android.view.View] element, there no text or other informatoin i see it include TextView, Image... same a item in listview Here is my code AndroidElement el = driver.findElement(By.id(io.***.vodi:id/message_list_item_chat_id)); AndroidElement el2 =

How to handle toast generate in android device while automating an app using appium?

懵懂的女人 提交于 2020-01-05 07:57:19
问题 I am trying to automate an android app using Appium and Webdriver. When i give invalid credentials to login into the app a toast appears, i want to assert the text of this toast.Also, I can't capture the screen shot of this toast using android uiautomatorviewr. How can i handle toast in android? Any Idea!! 回答1: Yes it is possible but only using uiautomator2, just pass the argument in the capability and use the below code: DesiredCapabilities caps = DesiredCapabilities.android(); caps

Native Browser Automation using Appium 1.2.0.1 on Windows 7 Android real device: Could not find a connected Android device

☆樱花仙子☆ 提交于 2020-01-05 07:51:27
问题 I have looked many forums for this issue, there are quite a few answers on this topic but none of these have worked for me/match my criteria. I recently took up Mobile Automation task and hence am completely new to Appium. I am working with Appium 1.2.0.1 on Windows 7 and trying to automate the native Android Browser(not Chrome or an App) on an Android v4.3 real device. I have installed everything according to the instructions. I am using Selenium in Maven Build in JUnit Framework to execute

What Are Some Best Practices When Asserting iOS Elements Are Displayed?

让人想犯罪 __ 提交于 2020-01-05 07:05:17
问题 I'm trying to write my first UI Automation test for an iOS app with Appium/Python. I find that when I list 10 assertions like the one below, I get very inconsistent results ... sometimes it passes, but it usually fails the third assertion, sometimes it fails the eighth. assert driver.find_element_by_name('Settings').is_displayed() I've also tried to use waits: driver.wait_for_element_by_name_to_display('Settings') assert driver.find_element_by_name('Settings').is_displayed() Does anyone know