appium

Appium does not initialize driver when launched programatically

时间秒杀一切 提交于 2019-12-12 04:04:03
问题 I am initializing Appium through command line using Java and Selenium for running test on Android chrome browser. However, the process runs for infinite time and the code from " DesiredCapabilities " line doesn't get executed.. Code : Process proc; String path_to_appium = System.getenv("APPIUM_HOME") + File.separator + "node_modules" + File.separator + "appium" + File.separator + "bin" + File.separator + "appium.js"; String path_to_node = System.getenv("APPIUM_HOME") + File.separator + "node

Change the simulator language

谁说我不能喝 提交于 2019-12-12 03:48:12
问题 I need to test my application against many simulator with different language settings. For this, I set appium desired capabilities in the terminal by running: ➜ appium --language 'fr' in order to set the language of my simulator to "fr". I tried also another method by creating different profiles in my cucumber.yml configuration file. Both methods are crashing my simulator(Please see logs below). Note: I'm using appium v1.5.1 MAC OS 10.11.4 Xcode v7.0.1 cucumber v2.3.3 ruby v2.3.0 Any ideas

Unable to click the Search(magnifying glass) button in Android keyboard using Appium/Selenium/Java

旧时模样 提交于 2019-12-12 03:37:31
问题 I am unable to select the Search button on the Android keyboard the one with Magnifying Glass using Appium/Selenium and Java . I have gone through earlier threads on stackoverflow and none of the threads were helpful. Need expert help! Thanks! 回答1: You can use this to use search button on the keyboard: driver.sendKeyEvent(AndroidKeyCode.ENTER); 回答2: adb -s UDID_VALUE shell input keyevent 84 or adb -s UDID_VALUE shell input keyevent KEYCODE_SEARCH 来源: https://stackoverflow.com/questions

Not able to inspect element of drop down using UIAutomatorViewer

夙愿已清 提交于 2019-12-12 03:32:22
问题 I want to select options from drop down on Android but I am not able to inspect element of drop down. Also these elements are not present in hierarchy as well. I can browse the hierarchy and inspect other controls, I can't inspect the elements of a drop down list. UIAutomatorViewer just doesn't let me to click the drop down list. Instead, it shows a blue rectangle around the element which is under the drop down list. I have tried uiautomatorviewer, hierarchyviewer as well as Appium Inspector

appium inspector not running on mac

孤街醉人 提交于 2019-12-12 03:23:49
问题 I have appium version 1.4 with xcode 6.2 and ios 8.4.1 . I run appium doctor and everything is fine for ios platform. On running inspector it throws this error: Could not start new session, app path required I have given app path also. 回答1: Mac El Capitan (Ver 10.11.1), Xcode 7.0.1(7B91b), Appium 1.4.13 iPhone 5 (iOS 7.0.4) - OK i. In Xcode, make sure the Debug Code Signing Identity in Build Settings->Code Signing is set to Developer provisioning profile. ii. Build and run (⌘R) the app

How to start appium sever from the Java code in Eclipse

三世轮回 提交于 2019-12-12 02:49:19
问题 I'm trying to start the appium server programmatically from my test case code, but nothing helps. Console always give me "org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure" error message. What have I tried so far: CommandLine command = new CommandLine("cmd"); command.addArgument("/c"); command.addArgument("C:/Program Files (x86)/Appium/node.exe"); command.addArgument("C:

Issue with scrollTo and scrollToExact methods of Android Driver. Methods do not scroll to required element text, but scroll to end of page

笑着哭i 提交于 2019-12-12 02:46:45
问题 We are working on a Cordova mobile application. On a screen we have a list of values in a table format. We need to perform a scroll action if we want to select an element not in visible range on the mobile device. The methods scrollTo() and scrollToExact() have been tried but these do not scroll to the required element text, but beyond it, that is to end of values in list. Moving to native context for performing scroll, had same result. Also, tried Javascript methods window.scrollTo() and

Java & Appium: Unable to click element

£可爱£侵袭症+ 提交于 2019-12-12 02:46:26
问题 In the Android app that I am testing, I am trying to click/tap the time picker. For example by default the time picker shows 08:00AM. I want to change the hour from 8 to 7 & then later on change the minutes but the xpath doesn't seem to be working. Its clicking something but the time still shows 08:00AM when I click the OK button via the code. If someone could help me then I will be able to change minutes & PM to AM as well. Here's what I am using for tapping the hour picker so that 7 shows

How to create appium TestSuite in Android Studio

只谈情不闲聊 提交于 2019-12-12 01:48:43
问题 I have created test stub using Appium in android studio. Now I want to create test suite so that I can manage my test cases. Could anyone help me how to create test suite for appium test cases? My AppiumTest.java contains public class AndroidAppiumTest { private AppiumDriver wd; @Before public void setUp() throws Exception { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("deviceName","Android"); capabilities.setCapability("appium-version", "1.0");

Appium Android UI testing - how to verify the style attribute of an element?

一个人想着一个人 提交于 2019-12-12 01:40:52
问题 I would like to verify the style of an element i.e. the color of the text shown in a textview. Whether it is black or blue ex. textColor or textSize. This information is not listed in the uiautomatorviewer. I can get the text using elem.get_attribute("text") as the text value is seen in the Node Detail. Is there a way to check for the style attributes?( I can do this fairly easy with straight selenium.) 回答1: Update. As it turns out that cannot be done with appium webdriver. For those of you