selendroid

Selendroid as a web scraper

雨燕双飞 提交于 2020-08-22 04:24:07
问题 I intend to create an Android application that performs a headless login to a website and then scrape some content from the subsequent page while maintaining the logged-in session. I first used HtmlUnit in a normal Java project and it worked just fine. But later found that HtmlUnit is not compatible with Android. Then I tried JSoup library by sending HTTP “POST” request to the login form. But the resulting page does not load up completely since JSoup won't support JavaScript. I was then

移动端APP自动化测试超全基础汇总

落花浮王杯 提交于 2020-08-12 20:54:10
  目录 一.面试过程 1.自动化岗位要求  2.面试流程,面试类型  3.沟通技巧,不同级别要求 二.真实面试案例 1.一个输入框的面试题(有人拿到高级岗位,有人连初级都没拿到,为什么) 三.自我分析 1.积累的知识决定了初入社会的岗位  2.什么是好的简历  3.需要掌握的基本知识 四.技术基础知识 1.常见测试理论  2.python语言常见问题  3.python常问算法  4.linux基本命令  5.计算机网络  6.操作系统  7.数据库相关  8.fiddler抓包工具  9.android系统相关工具  10.adb相关问题  11.monkey相关问题 五.自动化工具 1.Instrumentation  2.UIAutomator  3.Selendroid  4.Robotium  5.Appium  6.Selenium 六.自动化框架 1.Unittest框架  2.数据驱动DDT  3.行为驱动Lettuce  4.关键字驱动Robot Framework  5.测试报告管理  6.邮件服务管理 七.接口自动化 1.postman  2.python requests 八.持续集成(概念)  九.服务端性能测试  十.兼容性测试  十一.调试 正文 一.招聘要求   二.面试过程(笔试-技术-性格-薪资 )  三.面试类型  四.问题类型  五

Selendroid is not working?

血红的双手。 提交于 2020-01-04 07:03:43
问题 http://selendroid.io/setup.html Here is given an example of what I should get when I open localhost at port 4444. But instead I get: {"value":{"os":{"name":"Windows 7","arch":"x86","version":"6.1"},"build": {"browserName":"selendroid","version":"0.10.0"},"supportedDevices":[],"supportedApps": [{"mainActivity":"io.selendroid.androiddriver.WebViewActivity","appId":"io.selendroid.androiddriver:0.10.0", "basePackage":"io.selendroid.androiddriver"}]},"status":0} A device is connected to the PC and

Variety of issues testing Android Webview using Appium

左心房为你撑大大i 提交于 2019-12-31 07:01:14
问题 I have a hybrid app that is primarily just a webview. Here is the code for the basic test: @BeforeClass public static void setupAppium() throws MalformedURLException { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("appium-version", "1.5.3"); capabilities.setCapability("platformName", "Android"); capabilities.setCapability("platformVersion", "6.0"); capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "AppiumTesterDevice"); capabilities

Getting exception while running selendroid standalone from cmd propmt

心已入冬 提交于 2019-12-25 14:49:13
问题 I am new to selendroid, while following the steps to start standalone server via command prompt, getting error like "SEVERE: Error occurred while building server: An error occurred while resigning the app 'test.apk'." Added ANDROID_HOME environment variable also, but no luck... Please some one guide me to resolve this issue. 回答1: Finally I resolved my issues. The fact is I added JRE path separately and also added JAVA_HOME also. Now removed JRE path & started server successfully. 来源: https:/

Can't find an element on a webview page of an android native app using Appium

孤街醉人 提交于 2019-12-25 04:27:37
问题 I am not able to find the elements from android.webkit.webview package using java appium script. How to get the userText field and password field locators.so that i can pass the value to UI using the Appium script. 回答1: I have seen this problem with UIAutomator so many times. Try going to some other screen, fetch the elements of that screen and then come back to this screen again. Try to fetch the elements again and should work. 来源: https://stackoverflow.com/questions/32398841/cant-find-an

Appium : unable to run script in multiple android device connected

て烟熏妆下的殇ゞ 提交于 2019-12-12 07:27:55
问题 Created multiple instance of appium. from console i run : node . -p 4722 -U Z*****K --chromedriver-port 9 515 -bp 2251 node . -p 4723 -U T*****K --chromedriver-port 9 516 -bp 2252 Instances are created on both the devices but the URL opens only on the second device connected.Browser in the first device just stays open without the url being opened. Code : Specflow file : Test.feature Scenario: Check Home Page Given I am on home page Then My title should be 'whatever' Steps.cs [Given(@"I am on

Error when i try to execute selendroid command

随声附和 提交于 2019-12-12 04:39:38
问题 i've read some tutorials on the internet, and i don't know if i'm doing all right. I wrote this method, when i click in some button of my android application I hope that my click in this button will be able to open the android browser and acess google. Code: package com.example.androidapp; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; public class Sel { public void Trabalha(){ WebDriver driver =

Could not find load main class GridLauncher for selendroid grid

不打扰是莪最后的温柔 提交于 2019-12-11 20:28:08
问题 I want to test my native android app parallelly using Selenium grid .Is there any option to do the same in Selenium grid or in selendroid. I tried steps mentioned in selendroid.io/scale.html and i encounter below mentioned error. Error D:\mobile-test\selendroid grid>java -Dfile.encoding=UTF-8 -cp "selendroid-grid-plugin-0.17.0.jar:selenium-server-standalone-2.45.0.jar" org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0

apk does not have INTERNET permissions. Selendroid needs internet permission to proceed

喜你入骨 提交于 2019-12-11 10:50:54
问题 I am using android 4.1.2 whose APK level is 16. This is my python code : def setUp(self): "Setup for the test" desired_caps = {} desired_caps['automationName']='Selendroid' desired_caps['browserName']='' desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.1.2' desired_caps['deviceName'] = 'd65d04425101de' # Returns abs path relative to this file and not cwd desired_caps['app'] = '/home/karthik/appiumworkspace/tests/app-debug (2).apk' desired_caps['appPackage'] = 'com