-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
registering appium node with selenium server stopped working #8916
Comments
selenium team has confirmed it's appium related issue |
What is the terminal output for the command |
Also, why avd capability is not used to start emulator? |
@mykola-mokhnach please find below clarification
1.1 With this apk does gets installed but still see the errors in selenium server logs 1.2 appium log
|
The grid is getting the following capabilities: {
"capabilities": [
{
"desiredCapabilities": {
"app": "/Users/vikram-anna/Documents/ApiDemos-debug.apk",
"appPackage": "io.appium.android.apis",
"noReset": true,
"appWaitActivity": "io.appium.android.apis.ApiDemos",
"platformName": "Android",
"deviceName": "Android",
"applicationName": "dummy_Android_1"
}
},
{
"requiredCapabilities": {}
}
],
"desiredCapabilities": {
"app": "/Users/vikram-anna/Documents/ApiDemos-debug.apk",
"appPackage": "io.appium.android.apis",
"noReset": true,
"appWaitActivity": "io.appium.android.apis.ApiDemos",
"platformName": "Android",
"deviceName": "Android",
"applicationName": "dummy_Android_1"
},
"requiredCapabilities":{}
} I have no idea why it is not liking this. The throwing code is https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/web/servlet/handler/WebDriverRequest.java#L66-L80 |
Well, look like this PR broke backward compatibility. This is 7 days old PR. @vikramvi , if you want to unblock yourself you can use little older grid binaries. I believe it should work. |
@dpgraham You were working on capability compatibility with the W3C spec and whatnot, right? I think this falls into that. |
@imurchie It could be due to I can look into that today. It shouldn't reject the capabilities. I'll use the caps provided in this issue as a test case. |
@imurchie @dpgraham both being defined should be ok. Unfortunately what's inside of {
"capabilities": {
"alwaysMatch": {
"app": "/Users/vikram-anna/Documents/ApiDemos-debug.apk",
"appPackage": "io.appium.android.apis",
"noReset": true,
"appWaitActivity": "io.appium.android.apis.ApiDemos",
"platformName": "Android",
"deviceName": "Android",
"applicationName": "dummy_Android_1"
}, "firstMatch": []
},
"desiredCapabilities": {
"app": "/Users/vikram-anna/Documents/ApiDemos-debug.apk",
"appPackage": "io.appium.android.apis",
"noReset": true,
"appWaitActivity": "io.appium.android.apis.ApiDemos",
"platformName": "Android",
"deviceName": "Android",
"applicationName": "dummy_Android_1"
},
"requiredCapabilities":{}
} Is this something we're creating, or what? |
I'm suspecting that there is the client-side issue. Or it is the issue of compatebility with the Selenium Server 3.x
It these parameters are not present due to this fix: I am searching for the way to work out this issue. |
excellent, thank you @TikhomirovSergey! |
@jlipps |
@TikhomirovSergey yes, the server has been updated to support the new-style |
@jlipps |
makes sense, hooray for deleting code! |
shall we also update other clients in such case. How about Ruby client and Python? @KazuCocoa @dpgraham |
Ruby client hasn't supported the new capability yet, new style capability has been supported I've created issues for it, appium/ruby_lib#501 , appium/ruby_lib#558, and I'll start working to support it. |
@TikhomirovSergey can you please let me know tentative date for 5.0.0 release ? |
@mykola-mokhnach Yeah, we'll need to update the JS clients, PHP and Python |
When I run with |
@TikhomirovSergey any update on fixing the java client for this issue? |
@TikhomirovSergey with java-client 5.0.1 released, should this be considered resolved? |
@jlipps Yes this is fixed in latest java-client. |
@jlipps Nope, it isn't. |
Guys, please close it. It was resolved here appium/java-client#682 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
device_1.json
{"capabilities":[{"browserName":"Android","platformName":"ANDROID","maxInstances":1,"applicationName":"dummy_Android_1"}],"configuration":{"proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","cleanUpCycle":2000,"port":4700,"host":"127.0.0.1","maxSession":1,"hubHost":"192.168.178.21","registerCycle":5000,"hubPort":4444,"timeout":30000,"register":true}}
Environment
Details
If necessary, describe the problem you have been experiencing in more detail.
Link to Appium logs
appium server for node log
https://gist.github.com/vikramvi/00c877d228edd1d0e8d74f7e984cc2de
Selenium Server log
https://gist.github.com/vikramvi/e564bf089f1c46487ff0d9d112e77e7d
Code To Reproduce Issue [ Good To Have ]
Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.
Please git clone https://github.com/appium/sample-code and use one of your favourite languages and sample apps to reproduce the issue.
In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.
The text was updated successfully, but these errors were encountered: