U
U
unwrecker2020-04-24 17:39:12
Android
unwrecker, 2020-04-24 17:39:12

Is it possible to run a browser running Selenium Webdriver on a phone?

I want to write a program for Android that would control the browser on it. But on the very first line of code related to Selenium, everything crashes:


valdriver = ChromeDriver()

Error: "Unable to find a free port". I tried to replace Chrome with Firefox, but there is an error that the binary was not found in the paths.

People have similar errors, but everything is under Windows or Linux. Is it supposed to work on Android at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bittenmuskrat, 2020-04-24
@bittenmuskrat

Selenium not working on Android

S
SlavikF, 2020-04-25
@SlavikF

On mobile devices, you need Appium:
appium.io
And then run non-ChromeDriver accordingly, like this:

mobiledriver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question