appium

Cucumber Eclipse - Resolving warning: Cucumber-JVM's --format option is deprecated. Please use --plugin instead

感情迁移 提交于 2019-12-12 06:35:36
问题 Running Cucumber with Eclipse and getting the following warning: Cucumber-JVM's --format option is deprecated. Please use --plugin instead Tried to use Eclipse search functionality to search for "--format" and "format" but unable to find the relevant file I need to change. Any ideas? 回答1: In cucumber-java/src/org/jetbrains/plugins/cucumber/java/run/CucumberJavaRunConfigurationProducer.java change public static final String FORMATTER_OPTIONS = " --format org.jetbrains.plugins.cucumber.java.run

Select year on datepicker using selenium, appium and C#

萝らか妹 提交于 2019-12-12 06:32:20
问题 I am trying to select/click on a hidden element on a date picker of an android app to select a year, because the element is hidden I need to move to the element before clicking, I have tried various approaches but they've not yielded the desired result. On the date picker, the default selected is the present year (2017), if I select the previous year (2016) it works fine. How do I select a year like 1992 since I would have to swipe it to focus before clicking? Code: _driver.FindElement(By.Id(

How can I go to the given URL in mobile Chrome browser using c# and appium on real device?

泄露秘密 提交于 2019-12-12 05:28:39
问题 I'm automating mobile web testing on Android real device with Appium and c#. I've seen that there is get method in Java that allows navigation to the given URL, for example: DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setPlatform(Platform.ANDROID); capabilities.setCapability("device", "android"); capabilities.setCapability("app", "chrome"); driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); driver.get("http://www.google.com");

UI Automator Viewer finds elements inconsisently

大兔子大兔子 提交于 2019-12-12 05:19:10
问题 I have a weird issue while working with the UI Automator Viewer. The problem is that I get inconsistent result when doing "Device Screenshot" (uiautomator dump). So in some cases, I get all the elements(nodes) but in some cases I get only some of them, generally the basic whole page view without the textviews and buttons on it. To make things even more challenging, it looks like it happens absolutely random. So I can click on screenshot/dump button multiple times in a row and get different

How to fix “Can't locate an element by this strategy: Locator map:”

拟墨画扇 提交于 2019-12-12 05:15:11
问题 Can't locate an element by this strategy: Locator map: - native content: "By.xpath: //android.widget.ImageView[id='toolbar_search_place']" - html content: "by id or name "ClkSearchicon"" I have added XML : <?xml version="1.0" encoding="UTF-8"?><hierarchy rotation="0"><android.widget.FrameLayout index="0" text="" class="android.widget.FrameLayout" package="com.senrysa.veiculu" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false"

How to zoom in a mobile web using Appium

心已入冬 提交于 2019-12-12 04:43:02
问题 I have scenario in my project where I need to perform zoom in action Android Mobile web using Appium automation. I have used the following method. try { Dimension size = driver.manage().window().getSize(); int x0 = (int) (size.getWidth()*0.5); int y0 = (int) (size.getHeight()*0.5); System.out.println(x0+" "+y0); driver.zoom(100, 500); reportStep("The Application is zoomed.", "PASS"); } catch (Exception e) { e.printStackTrace(); reportStep("The Application could not be zoomed.", "FAIL"); } But

Not able to perform operation on tooltip through Appium Android

荒凉一梦 提交于 2019-12-12 04:39:47
问题 I am trying to automate android application with Appium. I have to perform click operation on tooltip but appium does not identify the tooltip. I have attached screenshot below in which i have to perform click event on "Margaritaville-Grand Turk" but i am not able to perform this operation. How way we can perform action on tooltip. 回答1: I'm new to Appium, and mobile automation, but I could guess that tooltip is could not be found in activity structure (you could check with Appium inspector,

How to tap on a element which is focused in appium. Unable to select value of a dropdown in appium

爷,独闯天下 提交于 2019-12-12 04:38:52
问题 I am facing an issue where the element of dropdown value is not showing in uiautomatorviewer. While I have check the XML DOM by getPageSource of the screen and there also no value is been exposed of the results showing on mobile app screen The XML snippet is as below:- <android.widget.FrameLayout index="0" text="" class="android.widget.FrameLayout" package="com.demo.pass" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false"

browser.saveScreenshot() hangs when called

三世轮回 提交于 2019-12-12 04:30:49
问题 Hi I am writing automation tests for a Cordova application. I want to save screenshots of each page, here is my code. it("should take screenshot", function() { return browser.contexts().then(function(cnt){ console.log(cnt[1]); return browser.context(cnt[1]); }).then(function(){ return browser.saveScreenshot("/Users/User/Documents/dev/engineerappcopy/VGimages/nexLogin.png") }); }); Here is my Appium console: [HTTP] --> GET /wd/hub/session/610d95af-6501-4c72-ac38-0184a8608dfd/screenshot {}

Integration between HP ALM and Appium

耗尽温柔 提交于 2019-12-12 04:06:04
问题 Is it possible to establish a connection between HP ALM and Appium to automate the test execution in ALM? 回答1: Yes, it is possible. You will have to use a different API for ALM. You've got 2 ways to achieve this: Using HP-ALM OTA API (OTA API Reference: Click here) Pros: a.) OTA API is a huge C# API with enormous variety of functionalities which can be used. b.) Object Based API. Most programmers can work easily use it. Cons: a.) Platform dependent. Need to register the OTA COM Client .dll in