appium

How to find element from react-native app using appium - React Native + Appium

和自甴很熟 提交于 2020-01-16 09:17:08
问题 How to find element in React-Native app using appium. Here the element does not have id, name or accessibility label or accessibility id to find it. @AndroidFindBy(xpath = "//android.widget.EditText[@text='Email']") public AndroidElement edt_email_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Password']") public AndroidElement edt_password_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Login']") public AndroidElement btn_login; Error: org.openqa.selenium

How to find element from react-native app using appium - React Native + Appium

て烟熏妆下的殇ゞ 提交于 2020-01-16 09:17:07
问题 How to find element in React-Native app using appium. Here the element does not have id, name or accessibility label or accessibility id to find it. @AndroidFindBy(xpath = "//android.widget.EditText[@text='Email']") public AndroidElement edt_email_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Password']") public AndroidElement edt_password_login; @AndroidFindBy(xpath = "//android.widget.EditText[@text='Login']") public AndroidElement btn_login; Error: org.openqa.selenium

Why won't my cross platform test automation framework run in parallel?

▼魔方 西西 提交于 2020-01-16 09:02:27
问题 I am currently rewriting the automated testing framework for my company's mobile testing. We are attempting to use an interface which is implemented by multiple Page Object Models dependent on the Operating System of the mobile device the application is being run on. I can get this framework to run sequentially and even create multiple threads but it will not run in parallel no matter what I do. Of Note, we use Appium and something called the DeviceCart / DeviceConnect which allows me to

Android自动化教程实战:Appium+Python (对应的链接地址:https://www.jianshu.com/p/8b06f76be7e6)

浪尽此生 提交于 2020-01-16 01:24:04
本文不在叙述Appium环境安装。如有需要请参考: http://www.jianshu.com/p/7a6fa7ab662b 1. 创建项目目录 mkdir project{conf,common,logs,doc,tests} #conf:存放appium-android配置设置,以及App页面元素配置文件; #logs:存放日志以及截图; #doc:存放文档; #common:存放工具类的脚本; #tests:存放测试脚本; 整个目录如下: Paste_Image.png 2. Appium Android配置文件 Appium Android Settings 设置如下: Paste_Image.png Python脚本配置如下: #!/usr/bin/env python # -*- coding:utf-8 -*- import os import sys import time import re from appium import webdriver sys.path.append("..") #用于解决多个手机连接问题 from common.mobile import get_serialno #Read mobile deviceId device_id = get_serialno() #Read mobile os Version os_version

Appium iOS automation using C#/Visual Studio

假如想象 提交于 2020-01-15 12:09:06
问题 I installed Appium and Xcode on my mac and trying to run code from Visual Studio on Windows VM, but to no success so far. Server's address and port in General Settings of the Appium on Mac are the same as in AppiumServers.cs class (127.0.0.1:4723). Please assist. The error that I get, as to be expected, is below. SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection

Appium iOS automation using C#/Visual Studio

余生长醉 提交于 2020-01-15 12:08:51
问题 I installed Appium and Xcode on my mac and trying to run code from Visual Studio on Windows VM, but to no success so far. Server's address and port in General Settings of the Appium on Mac are the same as in AppiumServers.cs class (127.0.0.1:4723). Please assist. The error that I get, as to be expected, is below. SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection

Appium iOS automation using C#/Visual Studio

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 12:05:48
问题 I installed Appium and Xcode on my mac and trying to run code from Visual Studio on Windows VM, but to no success so far. Server's address and port in General Settings of the Appium on Mac are the same as in AppiumServers.cs class (127.0.0.1:4723). Please assist. The error that I get, as to be expected, is below. SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection

AndroidContact.py

[亡魂溺海] 提交于 2020-01-15 05:43:27
import os import unittest from appium import webdriver from time import sleep import sys,time,re,datetime import HTMLTestRunner # Returns abs path relative to this file and not cwd PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) class ContactsAndroidTests(unittest.TestCase): def setUp(self): desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.4.2' desired_caps['deviceName'] = 'emulator-5554' desired_caps['app'] = PATH('C:/Users/Administrator.GX66EM1QYVIYEBP/Desktop/ContactManager.apk') desired_caps['appPackage'] = 'com

Python编写Appium测试用例(2)

橙三吉。 提交于 2020-01-15 04:23:22
#coding=utf-8 import os,sys import unittest from appium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC # Returns abs path relative to this file and not cwd PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) ISOTIMEFORMAT='%Y-%m-%d %X' class LoginTests(unittest.TestCase): def setUp(self): desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.4.4' desired_caps['deviceName'] =

Appium 计算器自动化实例

梦想与她 提交于 2020-01-15 00:30:27
#coding=utf-8 import os import time import unittest from appium import webdriver from lib2to3.pgen2.driver import Driver from lib2to3.tests.support import driver PATH=lambda p:os.path.abspath(os.path.join(os.path.dirname(__file__),p)) desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.4.2' desired_caps['deviceName'] = 'HUAWEI C199' #desired_caps['app'] = PATH('D:\\Appium\\StarZone_V2.0.0.apk')  desired_caps['appPackage'] = 'com.android.calculator2' desired_caps['appActivity'] = '.Calculator' driver = webdriver.Remote('http://localhost:4723/wd/hub',