Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes AndroidDriver node have to be on same machine as the hub?
    primarykey
    data
    text
    <p>When following the instructions to set up <a href="https://code.google.com/p/selenium/wiki/AndroidDriver" rel="nofollow">AndroidDriver</a> (page seems to be down temporarily), it is not entirely clear how the driver is being attached to the hub and whether I can attach it to a remote hub. </p> <p>After installing web driver on the Android emulator/device, there are these instructions:</p> <blockquote> <p>You can start the application in debug mode, which has more verbose logs by doing:</p> <p>$./adb -s shell am start -a android.intent.action.MAIN -n org.openqa.selenium.android.app/.MainActivity -e debug true Now we need to setup the port forwarding in order to forward traffic from the host machine to the emulator. In a terminal type:</p> <p>$./adb -s forward tcp:8080 tcp:8080</p> <p>This will make the android server available at localhost:8080/wd/hub from the host machine. You're now ready to run the tests. Let's take a look at some code.</p> </blockquote> <p>But what if want to make the server available at remoteHub:8080/wd/hub instead?</p> <p>Can I attach my <code>AndroidDriver</code> node to a remote hub? Or does it have to be on or attached to the same machine as the hub?</p> <p><strong>Edit</strong>: If I try to point my AndroidDriver at the remote hub:</p> <pre><code>AndroidDriver androidDriver = new AndroidDriver(new Uri("remote...:4444/wd/hub")); Drivers.Add(androidDriver); </code></pre> <p>I get the following <code>InvalidOperationException</code>:</p> <blockquote> <p>Error forwarding the new session cannot find : {platform=ANDROID, browserName=android, rotatable=true, takesScreenshot=true, version=}</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload