Questions tagged [selendroid]

Selendroid is a test automation framework for native or hybrid Android apps and the mobile web.

Selendroid is a test automation framework which drives off the UI of Android native and hybrid applications (apps) and the mobile web. Tests are written using the Selenium 2 client API!

Selendroid can be used on emulators and real devices and can be integrated as a node into the Selenium Grid for scaling and parallel testing.

210 questions
15
votes
2 answers

How do I add Selendroid to android studio for web scraping?

Please see edits below before answering! I am trying to set up dynamic web scraping with Selenium, however, I can't seem to find the necessary gradle dependencies/lib files to add to my project. I looked at Selendroid/Selenium's website and was…
mlz7
  • 2,067
  • 3
  • 27
  • 51
14
votes
3 answers

Selendroid as a web scraper

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…
Gayan Weerakutti
  • 11,904
  • 2
  • 71
  • 68
11
votes
3 answers

How to perform swipe action in Selendroid?

I have tried with below codings for swiping. While running the test case, the swipe action doesn't occurs and I am also not getting any error message. How can I swipe on both side from left to right and vice-versa. There are two methods which are…
Galet
  • 5,853
  • 21
  • 82
  • 148
11
votes
1 answer

How to test native Android app with Protractor

I have native Android app, built with Ionic, so e2e tests are written with Protractor and works fine with hybrid version of application. I'm trying to figure out, if it's possible to run these tests against native app on Android device (or, at…
OZ_
  • 12,492
  • 7
  • 50
  • 68
8
votes
10 answers

How to test Android toast messages in Appium ( selenium Java)

I am using Selenium with Java to run scripts on android (thru Appium server). I see that it is not possible to locate a toast by using selenium's driver.findElement(By.LinkText("User not logged in") in Appium But can be used in Selendroid to…
RJX
  • 383
  • 1
  • 4
  • 11
5
votes
1 answer

Selendroid cannot recognize Android 7 device

I have a Nexus 5X running Android 7.0 (security patch level: November 5, 2016; Build number: N5D91L) plugged into my Mac with USB debugging enabled. ADB recognizes the device (so this solution is not relevant): $ adb devices -l List of devices…
user513951
  • 12,445
  • 7
  • 65
  • 82
4
votes
2 answers

How to verify a toast message in selendroid

I need to verify a toast message like "created successfully". I tried by using linktext. But its not working.Can anyone help me regarding this?
4
votes
1 answer

Why does Play throw NoSuchMethodError for Netty's HttpRequest.headers() with Selendroid?

Ok so I had my localhost:9000 working just fine one week ago and I am getting this error ever since I moved my project to Eclipse. Even when I have the code in its most basic form, it produces a Netty error that is caught by Play. Here is my error: …
Chiquelo
  • 162
  • 2
  • 13
3
votes
0 answers

Selendroid doesn't work with Protractor browser.get

We are using Protractor to test our Angular web. Our E2E tests are working fine with PC version. Now I want to setup the tests to run on Android with Selendroid. I followed the setup guideline from…
Mega Chan
  • 41
  • 6
3
votes
1 answer

Selendroid won't start some apps

I got the average setup for starting an app on a device and sometimes it works perfectly fine (the app starts and can be controlled by selendroid) sometimes (in the case of the firefox.apk) this happens: Aug 10, 2015 3:02:13 PM…
dustin
  • 56
  • 6
3
votes
3 answers

How to use testng annotations in java

My code public class Test{ @BeforeTest public void create_user throws Exception (){ } @Test public void user_actions throws Exception (){ } @AfterTest public void delete_user throws Exception(){ } } Above is my test…
Galet
  • 5,853
  • 21
  • 82
  • 148
3
votes
1 answer

How can i make swipe in mobile web page using selendroid webdriver?

I have tried with below codings for swiping a mobile pages. While running the test case, the swipe action doesn't occurs and i am also not getting any error message. How can I swipe on both side from left to right and vice-versa. 1. //Swipe Right…
selvi
  • 1,271
  • 2
  • 21
  • 41
3
votes
0 answers

Android emulator details not listing in Selenium Server for Selendroid

I am trying a sample project for mobile automation testing in android using selenium. From the link http://selendroid.io/mobileWeb.html, I have started the selenium standalone server and also started the android emulator. But the emulator devices…
kk1076
  • 1,740
  • 13
  • 45
  • 76
3
votes
2 answers

Using "copy" and "paste" with Appium/Selendroid

Is it possible to copy and paste a string using Selendroid / Appium on an Android testing device? I'm trying to work out how to use sendKeys to an input on an app that uses non-English characters (Arabic, Russian, Portuguese etc) -- from what I can…
2
votes
1 answer

More than one file was found with OS independent path 'README.md'

I'm trying to use selendroid in my app as webscraper, but I get this error "More than one file was found with OS independent path 'README.md'" . Any thoughts on how to fix it? build.gradle apply plugin: 'com.android.application' android { …
Keker
  • 327
  • 1
  • 3
  • 13
1
2 3
13 14