appium

error:The given path's format is not supported

徘徊边缘 提交于 2019-12-20 02:42:12
问题 What am I doing wrong? My major problem is that I'm getting an error says: error : The given path's format is not supported I would like to save the file within the project itself under a folder I have already created named:Screenshots public void TakeScreenShot() { string pth = System.Reflection.Assembly.GetCallingAssembly().CodeBase; string actualPath = pth.Substring(0, pth.LastIndexOf("bin")); string projectPath = new Uri(actualPath).LocalPath; Screenshot ss = ((ITakesScreenshot)_driver)

appium元素定位

假装没事ソ 提交于 2019-12-19 23:41:45
通过id定位 安卓里面的id即为resource-id driver.findElementById("com.tencent.mm:id/do") 或者 WebElement element = driver.findElement(By.id("com.tencent.mm:id/do")); 通过name定位 一般text为name WebElement el = driver.findElement(By.name("昵称")); 通过classname定位 Classname即为uiautomator里面的class信息 WebElement el = driver.findElement(By.ClassName("android.widget.TextView")); 通过xpath定位 在appium中xpath定位元素,执行很慢,效率比较低,很少用 WebElement el = driver.findElement(By.xpath("//android.widget.Button[@index='1']")); 通过accessibilityID定位 在uiautomator中的content-desc信息为该定位元素 WebElement el = driver.findElementByAccessibilityId("sharebutton");

Appium logcat capture failed: spawn ENOENT (no spaces in path)

耗尽温柔 提交于 2019-12-19 19:43:22
问题 Here is my setup: Appium 1.3.7 on Windows, real Android device with 4.1.2, Eclipse, TestNG. Path to SDK without spaces . Sample calculator test DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("BROWSER_NAME", "Chrome"); capabilities.setCapability("automationName", "Selendroid"); capabilities.setCapability("platformVersion", "4.1.2"); capabilities.setCapability("deviceName","0123456789ABCDEF"); capabilities.setCapability("platformName","Android");

Unable to create new remote session while testing an Android application with Appium

做~自己de王妃 提交于 2019-12-19 11:56:12
问题 I'm trying to run an Example of test scripts coded with java in Eclipse with Appium. I run Appium by npm (i'm using Appium 1.6.3, i'm not new to Appium i run it before on Mac and on windows without any problem but this time in Ubuntu it looks a bit different while it's not with the appium application but with console) appium --address 127.0.0.1 I'm using java-client-4.1.2.jar selenium-java-3.0.1.jar selenium-server-standalone-3.0.1.jar testng-6.9.10.jar And my java class is : import io.appium

Webdriver.IO - check in a non-blocking way whether an element exists

早过忘川 提交于 2019-12-19 11:45:09
问题 Rookie question. I am using webdriver.io to write Appium end to end tests. I am using these commands to check the presence of an element: $(selector) browser.waitForVisible(selector, timeout, waitForAppearOrDisappear); browser.element('selector') They all block my tests if the element is not found. How can I check whether an element exists in a particular moment without blocking the test execution? I cannot find anything in the (concise) documentation. PS. This should do the trick browser

appium打不开问题解决

房东的猫 提交于 2019-12-19 11:21:11
打算用appium完成自动化测试时,appium环境一切就绪,但就是打不开,程序也不会报错。 难就难在程序不会报错,让你不知道哪里出了问题。 真正的解决方案: 双击Appium.exe文件启动时,发现同时会启动一个cmd.exe进程,直接将cmd.exe进程在任务管理器中结束掉,程序界面就会显示出来。 来源: CSDN 作者: 天明之时 链接: https://blog.csdn.net/u011987034/article/details/103608758

/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

北战南征 提交于 2019-12-19 08:12:29
问题 I am trying to run appium tests. However I get error saying what: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found I am using RedHat6.6. When I run: strings /usr/lib/libstdc++.so.6 | grep GLIBC I get this: GLIBC GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBC_2.0 GLIBC_2.3 GLIBC_2.4 GLIBC_2.1 GLIBC_2.1.3 GLIBC_2.3.2 GLIBC_2.2

/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

旧时模样 提交于 2019-12-19 08:12:18
问题 I am trying to run appium tests. However I get error saying what: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found I am using RedHat6.6. When I run: strings /usr/lib/libstdc++.so.6 | grep GLIBC I get this: GLIBC GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBC_2.0 GLIBC_2.3 GLIBC_2.4 GLIBC_2.1 GLIBC_2.1.3 GLIBC_2.3.2 GLIBC_2.2

cnpm安装appium的坑,error:NoSuchSessionException: A session is either terminated or not started

戏子无情 提交于 2019-12-19 04:14:35
cnpm安装appium的坑,error:NoSuchSessionException: A session is either terminated or not started 之前因为使用npm方式安装appium很慢的原因,选择使用cnpm安装。使用一段时间后,在启动App时出现如下图的问题。如果你也遇到了同样的问题,请使用如下方法尝试解决,亲试有效。 卸载现有的appium。参考:http://www.360doc.com/content/16/0520/16/27628153_560738062.shtml 如果遇到不能卸载,根据提示的内容,手动删除提示中的文件。一般需要多次手动删除。 然后使用npm,更改下载源重新安装appium。 install -g appium --registry=https://registry.npm.taobao.org 来源: CSDN 作者: 小K~ 链接: https://blog.csdn.net/weixin_44710258/article/details/103602834

Is it possible to get session_id of active driver opened with Selenium and Appium if several drivers were activated?

冷暖自知 提交于 2019-12-19 02:30:15
问题 While automating I open several browsers, say Firefox, with driver1 = webdriver.Firefox() driver2 = webdriver.Firefox() driver3 = webdriver.Firefox() ..... Is there a way to get the session_id and webdriver itself of the active Browser? The same question for Appium. Is it possible to get session_id and driver itself of the active device (virtual or real)? 回答1: To get the driver session id with Selenium / Java: WebDriver driver = new FirefoxDriver(); SessionId session = ((FirefoxDriver)driver)