我正在尝试实现appium自动化,并且我已经编写了appium自动化代码。我使用过appium服务器,我的代码如下:
public class WaitTests {
WebDriver driver;
@Before
public void setUp() throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName
我正在通过appium自动化亚马逊应用程序。在产品描述页面中,它使用webview。但是在appium中使用getContextHandles()时,它只返回NATIVE_APP作为上下文。即使使用driver.context("WEBVIEW_1")直接切换也会抛出异常,说明不存在这样的上下文。
如何在亚马逊应用程序中切换到webview。
public class AmazonTest {
AndroidDriver<MobileElement> driver;
public void setUp() throws MalformedURLEx
当我试图运行我的appium时,我在堆栈跟踪中遇到了这个问题,我已经尝试了很多方法来解决它,但没有成功。要解决以下问题,我需要做些什么?
[BaseDriver] Session created with session id: xxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxx
[AndroidDriver] Java version is: 1.8.0_201
[HTTP] <-- POST /wd/hub/session 500 130 ms - 598
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"
我正在尝试使用appium模拟器自动化我的应用程序。我已经完成了Appium的设置。当我运行下面附加的示例程序时。在启动iphone模拟器后,Java程序终止,下面的错误请帮助我,如果我丢失了任何.JAR文件?
Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/remote/HttpVerb
at io.appium.java_client.AppiumDriver.postC(AppiumDriver.java:644)
at io.appium.jav
I am using Appium installed over npm (version 1.13.0), Selenium (3.8.1), Appium client for java (4.1.2).
使用UIAutomationViewer,我能够找到我想要单击的元素的I。但是,当我运行代码时,在od is的位置上,selenium试图用css找到它们。
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.DEVICE
我目前正在从事一个建立平板电脑的自动化项目。我非常熟悉Selenium和Java。为了简单地回答这个问题,这几句话中哪一句是在推陈出新?如果我想推多个apks呢?
public class AppiumTest {
private static AndroidDriver<MobileElement> driver;
@BeforeTest
public void firstatest() throws MalformedURLException, InterruptedException {
DesiredCapabilities capabilities = new De
我试图在iPhone 5S上运行我的appium测试,它已经插入了Windows10计算机。但这是行不通的。有人能帮我如何使用Windows在iOS真实设备上运行appium测试吗?下面是我所使用的所需的功能。
public class WebTest {
AppiumDriver driver;
DesiredCapabilities capabilities = new DesiredCapabilities();
@BeforeClass()
public void init() throws MalformedURLExceptio
当我尝试启动appium会话时,总是会出现以下错误:
error: Unhandled error: TypeError: Path must be a string. Received null
at assertPath (path.js:9:11)
at Object.posix.resolve (path.js:427:5)
at [object Object].<anonymous> (/usr/local/lib/node_modules/appium/lib/devices/android/android-common.js:686:29)
我想用Appium在手机上测试这个网站。我准备好了
最新Appium
Android SDK
TestNG
Java-client 2.1
Java1.7
硒2.42和硒单独2.42
为工具和平台设置了环境变量--工具、Java和appium正在启动,但是当我点击时,我得到了这样的消息:
"That URL did not map to a valid JSONWP resource"
在Appium窗口我看到了这个
Responding to client that we did not find a valid resource
info:
我尝试使用AppiumDriver编写以下代码,但遇到错误。我使用的是beloe代码和appium.dotnet驱动程序版本1.5.1.1
using NUnit.Framework;
using System;
using System;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Appium;
using OpenQA.Selenium.Appium.Android;
using OpenQA
我正在测试一个iOS应用程序(在真实设备上),并遇到以下错误: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: AUT is not installed. (WARNING: The server did not provide any stacktrace information). 如果有人能指出Selenium抛出这个错误的原因,那将会很有
我试图在appium中测试一个移动应用程序,但是它抛出了以下错误
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command.
Original error: Cannot start the 'com.example.abc' application.
Original error: 'com.example.abc.ui.splash.SplashActivity' or 'com.exampl
我打算用在Ubuntu中使用Appium为我的android应用程序编写自动化测试。
Appium是用Android安装和配置的。我有一个MainActivity,它决定用户是否登录。带用户到主屏幕,否则带用户到有登录选项的WelcomeActivity。
我只为点击按钮编写了WelcomeActivity测试,一切都很好,测试是在Appium和Sellinium在模拟器上运行应用程序之后通过的。下面是WelcomeActivity的ui测试代码
public class WelcomeActivityUITests {
WebDriver driver;
@Before
public vo
我被一个游戏应用程序卡住了,appium在旋转点击时返回200状态代码(游戏页面上的点击都不起作用,尽管appium返回200代码),但点击不是在设备上执行的。这是一个web应用程序,我使用的是真实的设备。任何帮助都将不胜感激。
我试过使用隐式的、显式的等待,使用线程、Javascript的等待,基于坐标的单击,但没有运气。
我使用了下面的代码:
public class AndriodDriver {
AndroidDriver<WebElement> driver;
@Test
public void testFirstCalculator() throws IOExce
我已经创建了一些单元测试,并且正在使用Appium来运行这些测试。我希望能够单击一个按钮,并且通常我可以使用FindElementByName属性,但是在本例中我不能,因为有两个元素具有相同的名称。
下面是我使用检查器时可以看到的属性的图像。
PowerPointSession.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
PowerPointSession.FindElement(By.XPath("//a[contains(text(), 'Open') or c
我正在使用Appium在Chrome,Android (真正的设备,而不是模拟器)上测试一个web应用程序。每当我启动测试,所有浏览器数据(书签、历史等等)都被删除了。有什么办法阻止这种事发生吗?
我尝试将noReset功能设置为true,但这并没有帮助。
预先感谢您的帮助
public static Uri testServerAddress = new Uri("http://127.0.01:4723/wd/hub"); // Appium is running locally
public static TimeSpan INIT_TIMEOUT_SEC = T