-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting unable to extract capabilities exception #1
Comments
@vinaybalepur - This doesn't seem to be a problem with Selenium, but looks to be a problem specific to the appium java client. Here's a pure Selenium sample that still runs fine when using Selenium 3.14 import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class Example {
private RemoteWebDriver driver;
@BeforeClass
public void beforeClass() throws MalformedURLException {
URL url = new URL("http://localhost:4444/wd/hub");
DesiredCapabilities dc = DesiredCapabilities.chrome();
dc.setCapability("nodeName", "dummy");
driver = new RemoteWebDriver(url, dc);
}
@Test
public void testMethod() {
driver.get("http://www.google.com");
System.err.println("Title " + driver.getTitle());
}
@AfterClass
public void afterClass() {
if (driver != null) {
driver.quit();
}
}
} Here are the logs from the selenium grid node.
I haven't tried anything using appium client... Do you have a simple standalone sample that can be used to reproduce this issue ? Please share a simple one, so that I can easily run it. I haven't setup appium on my machine for a very long time. |
Thank you for the information. I can provide the code. But appium has to be set up for running it. Othere wise will not be possible. |
@vinaybalepur - I am not asking for an appium setup. I am asking for a simple standalone test that can be executed to reproduce the issue. Also please ensure that the sample relies on using the demo app from appium. |
Hi. Thanks for sharing the way to create our own capabilities. But I am getting following exception even after following all the steps you have specified. Please let me know how to fix this.
org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request:
The extra capability I have provided is nodeName. If I do not pass this then the node call goes through. With this it is failing.
Few more details -
Selenium server - 3.14
Appium java client - 6.1.0
The text was updated successfully, but these errors were encountered: