appium

Appium iOS can't inspect notification layer

↘锁芯ラ 提交于 2019-12-13 04:19:54
问题 Im using Appium to test my notifications in my iOS app. Im sending with another device a notification while the iOS app is in BG. Then I swipe down using : ((IOSDriver) wd).swipe(500,0,500,1000,1000); The above works, the screen get scrolled down and I can physically see the notification. The issue is that the appium still inspects the screen below. I checked appium inspector and it verified that it doesn't recognize nothing but the elemnts of the layer below the notifications one. Any

Appium server automatically quit session while waiting

我怕爱的太早我们不能终老 提交于 2019-12-13 04:17:07
问题 I am doing automation with Appium on Android platform. Due to some reason, I need to wait for some time during the test. However, Appium automatically quit session if it does not receive commands in around 4 seconds. Can anyone help me tell me how to make Appium not quit my driver. I have tried add "newCommandTimeout" to capability, but it does not work. capabilities.setCapability("newCommandTimeout", 120000); Appium version: v1.9.1 Here are appium logs while session is quiting: [W3C] Calling

Replace // with / at run time [duplicate]

混江龙づ霸主 提交于 2019-12-13 03:59:41
问题 This question already has answers here : C# How to maintain the path as in string without replacing double slash (2 answers) Why is \ character being doubled in my @ string? (3 answers) Closed last year . i'm getting // in path i want single /. whenever i'm debugging it i'm getting // at run time. i have also used replace method. but it isn't working. My code is string inputFile = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + "\\InputFiles\\" + config.country + ".txt"

Appium Date Picker Scroll android

杀马特。学长 韩版系。学妹 提交于 2019-12-13 03:46:03
问题 Hey Guys I am new to Appium Automation testing... I need to work on automating the android default OS Date picker dialog as per the below image. Can some one help me on this?Date picker dialog 回答1: Just Use the below code First open your date picker and use the sample code.. public static String datePicker_ui_id = "android:id/datePicker"; public static String pickers_ui_id = "android:id/pickers"; public static String NumberPicker_ui_id = "//android.widget.NumberPicker"; public static String

Webelement.click() giving java.lang.NullPointerException in appium

半城伤御伤魂 提交于 2019-12-13 03:13:17
问题 I am getting NullPointerException everytime I try to run below code at code line element.click() Note : It passes if I comment the last line of code. Also similar question was asked here but it didn't help. AndroidDriver driver; @Test public void TestAppium() throws Exception{ DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("deviceName", "MotoG5s Plus"); capabilities.setCapability("platformVersion", "7.1.1"); capabilities.setCapability("platformName",

Android native app testing using Selenium

强颜欢笑 提交于 2019-12-13 02:03:16
问题 Can anyone one please guide me ... how to work with native apps with Selenium. I have Appium and native driver for this, but it won't work for me. While running, I am getting the error in the console. " Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure ." What's wrong? 回答1: Check out: https://groups.google.com/forum/#!forum/appium-discuss There are lots of beginner questions on there and they might help with a question like

Original error: Could not initialize ideviceinstaller;

◇◆丶佛笑我妖孽 提交于 2019-12-13 01:38:13
问题 I worked out an "Hello iOS" app by Xcode and can test it by Appium on iOS Simulator. However, I got the following error message when I tried to test the same app on a real iPhone/iPad device. A new session could not be created. (Original error: Could not initialize ideviceinstaller; make sure it is installed and works on your system) (WARNING: The server did not provide any stacktrace information) Here are my environment. xcode: 7.0.1 mac os: version 10.11 appium version: 1.4.13 I tried this

Appium的简答使用

核能气质少年 提交于 2019-12-12 23:25:20
Appium Appium 服务关键字 关键字 描述 实例 automationName 你想使用的自动化测试引擎 Appium (默认) 或 Selendroid platformName 你要测试的手机操作系统 iOS, Android, 或 FirefoxOS platformVersion 手机操作系统版本 例如: 7.1, 4.4 deviceName 使用的手机类型或模拟器类型 iPhone Simulator, iPad Simulator, iPhone Retina 4-inch, Android Emulator, Galaxy S4, 等。在 iOS 上,这个关键字的值必须是使用 instruments -s devices 得到的可使用的设备名称之一。在 Android 上,这个关键字目前不起作用。 app .ipa or .apk文件所在的本地绝对路径或者远程路径,也可以是一个包括两者之一的.zip。 Appium会先尝试安装路径对应的应用在适当的真机或模拟器上。针对Android系统,如果你指定app-package和app-activity(具体见下面)的话,那么就可以不指定app。 会与 browserName 冲突 比如/abs/path/to/my.apk或http://myapp.com/app.ipa browserName

Appium Error: Could not get Xcode version

天大地大妈咪最大 提交于 2019-12-12 21:52:10
问题 Appium error when trying to launch test on eclipse. I have installed Xcode 6.4 and it should work but it doesn't. error: Could not determine Xcode version:Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. info: [debug] Setting iOS SDK Version info: [debug] Cleaning up appium session info: [debug] Error: Could not get Xcode version. /Library/Developer/Info.plist does not exist on disk. at getVersionWithoutRetry$ (lib/xcode.js:115:11) at tryCatch (/Applications

Click is not working with appium test is passing but no action is performed

人走茶凉 提交于 2019-12-12 20:25:24
问题 I want to click on logout button. I have tried following things to perform a click action Using Tap WebElement logOut = driver.findElementByName("Log out"); TouchAction act = new TouchAction(driver); act.tap(logOut, 1, 1); Simple click WebElement logOut = driver.findElementByName("Log out"); logOut.click(); Press TouchAction act = new TouchAction(driver); act.press(logOut).perform() ; For Press its giving An unknown server-side error occurred while processing the command. Also tried