appium

How to locate element in UIautomator if native keyboard come before your application?

一世执手 提交于 2019-12-21 06:12:12
问题 As per project requirement i am working on Mobile App automation. Not problem arises when i executed same code which worked fine on emulator but when it comes to real device the same code were getting failed.the problem is UiAutomator is not able to locate element because of native keyboard come before an application during simulation. I executed this entire thing into Galaxy nexus which works on ANDROID API 18.hence no point to execute whole automation suites in Selendroid mode. in below

How to locate element in UIautomator if native keyboard come before your application?

夙愿已清 提交于 2019-12-21 06:11:13
问题 As per project requirement i am working on Mobile App automation. Not problem arises when i executed same code which worked fine on emulator but when it comes to real device the same code were getting failed.the problem is UiAutomator is not able to locate element because of native keyboard come before an application during simulation. I executed this entire thing into Galaxy nexus which works on ANDROID API 18.hence no point to execute whole automation suites in Selendroid mode. in below

protractor-html-screenshot-reporter not showing any report after test execution

梦想与她 提交于 2019-12-21 05:37:06
问题 I am using protractor to automate a hybrid mobile app, I am using the Protractor-HTML-screenshot-reporter, but it is not displaying any report after successful test execution. Here's my code below: var HtmlReporter = require('protractor-html-screenshot-reporter'); var reporter=new HtmlReporter({ baseDirectory: 'C:\\Users\\bhawani.prasad\\Desktop\\Protractor\\PageObject\\report', // a location to store screen shots. docTitle: 'Protractor Demo Reporter', docName: 'protractor-demo-tests-report

adb shell dumpsys window windows output describing

送分小仙女□ 提交于 2019-12-21 04:49:16
问题 I'm using appuim for interaction between my Android device and java code. And I faced with problem that on some kind of devices(including emulators) after pressing on Home button, appium return incorrect current activity (it returns previuos activity which is currently must be minimized). I found that appium used dumpsys window windows with grabbing mFocusedApp value for getting current app. I read another answers about getting Android current activities, and mostly it recommend to use: adb

How to make appium tests run faster on iOS?

若如初见. 提交于 2019-12-21 02:45:14
问题 Currently, I am using appium for iOS app testing and I have written tests in Java on mac mini machine. I’m using Jenkins CI to run my tests. I want to run my tests faster as currently its quite slow on iOS simulator. For example, if I enter any value in textfield via sendkeys() function like ’testdata’ then typing speed in emulator is slow. It first write character ’t’ then ‘e’ then ’s’ and so on from simulator’s keyboard. Following are my questions, Is there any way I execute my tests faster

appium手机操作

佐手、 提交于 2019-12-20 09:36:44
1 、按键操作 pressKeyCode(key, metastate) key 为按键事件, metastate 为辅助功能键 举例: pressKeyCode(AndroidKeyCode.HOME) 按 HOME 键 pressKeyCode(AndroidKeyCode.KEYCODE_A, 1) 按 A 键 2 、锁屏操作 lockScreen(seconds) :屏幕几秒后锁屏 isLocked() :判断屏幕是否锁屏,返回布尔类型,锁屏为 true 3 、打开通知栏 openNotifications() 4 、屏幕滚动 scrollTo(text) :滚动到某个 Text 属性为指定的字符串的控件 scrollToExact(text) :滚动到某个 Text 属性包含传入的字符串的控件 5 、获取网络状态 getNetworkConnection().value :返回一个整型 0 : none 1:Airplane Mode 2:Wifi only 4:Data only 6:All network on 6 、设置网络状态 setNetworkConnection(connection) 举例: setNetworkConnection(new NetworkConnectionSetting(1));// 飞行模式 setNetworkConnection

how to add explicit wait in drop down in selenium which is dependent on another dropdown?

帅比萌擦擦* 提交于 2019-12-20 07:45:16
问题 how to add explicit wait in drop down using selenium until it finds the text ? 回答1: WebDriver wait = new WebDriver(Driver, Seconds); boolean status; status = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(""))) != null; 回答2: Try this below code. WebDriverWait wait = new WebDriverWait(driver, 15); //add Explicit Wait wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(By.xpath("Your xpath")))); driver.findElement(By.xpath("Your xpath")).click(); //After

App opens and crashes on simulator using desktop Appium app

强颜欢笑 提交于 2019-12-20 06:39:33
问题 Test Environment Desktop OS/version used to run Appium:Version 1.2.0-beta.3 (1.2.0-beta.3) Node.js version (unless using Appium.app|exe): Mobile platform/version under test:ios simulator iPhone 6s plus 10.2 1.Pulled latest code from sourcetree 2.opened xcode 3.made a archive file 4.got the app file from there. 5.opened Appium desktop app 6.added the desired capabilities .{ "app": "/Users/Desktop/PreProd.app", "platformName": "iOS", "deviceName": "iPhone 6s Plus", "platformVersion": "10.2",

I set up Appium for Real iOS device, Unable to launch WebDriverAgent because xcodebuild failed with code 65

*爱你&永不变心* 提交于 2019-12-20 04:55:25
问题 I am trying to run Appium on a real iOS device. I have been able to successfully run it on android, but when I try running for iOS I get the error. Here is my environment: Appium v1.8.0 iPhone SE 11.2.6 Xcode 9.3.1 I’ve read that error 65 is often caused by using a free account, but I’m using the xcodeSigningId for our development team. I would rather the automatic configuration work, but I tried the manual configuration anyway, but I don’t think I did it right. I followed the steps from this

How to use Appium to automate a 3rd party ios app on real device

本小妞迷上赌 提交于 2019-12-20 03:43:13
问题 I'm trying to automate a 3rd party ios app (YouTube, for example) on a real iPhone using Appium . I haven't been able to find a single guide/tutorial to achieve this, but from the information I gathered, it seems to involve the following steps: Extract the pre-installed app and decrypted it (using a tool such as Clutch) Resign it with my development cert I know I omitted lots of details in each step, but my question is, has anyone done this successfully and can confirm this is actually