-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[🐛 Bug]: Selenium grid working for capability "appium:browserName": 'Chrome' and not "browserName": 'Chrome', #12640
Comments
[server]
host = "172.21.34.232"
url = "http://172.21.34.232:5552"
port = 5552
# session-request-timeout = 1800
[events]
publish = "tcp://172.21.34.239:4442"
subscribe = "tcp://172.21.34.239:4443"
[node]
# url = 172.21.34.232
detect-drivers = false
max-sessions = 1
session-timeout = 180
[relay]
url = "http://172.21.34.232:4782"
service-host = "172.21.34.232"
service-port = 4782
status-endpoint = "/status"
configs = [
"1", "{\"platformName\": \"ANDROID\", \"appium:udid\": \"06a49bf4\", \"appium:deviceName\": \"06a49bf4\",\"appium:automationName\": \"UIAutomator2\", \"appium:systemPort\":8301, \"appium:platformVersion\": \"13\", \"appium:deviceClass\":\"NA\"}"
] [server]
host = "172.21.34.232"
url = "http://172.21.34.232:5552"
port = 5552
# session-request-timeout = 1800
[events]
publish = "tcp://172.21.34.239:4442"
subscribe = "tcp://172.21.34.239:4443"
[node]
# url = 172.21.34.232
detect-drivers = false
max-sessions = 1
session-timeout = 180
[relay]
url = "http://172.21.34.232:4782"
service-host = "172.21.34.232"
service-port = 4782
status-endpoint = "/status"
configs = [
"1", "{\"platformName\": \"ANDROID\", \"appium:udid\": \"06a49bf4\", \"appium:deviceName\": \"06a49bf4\",\"appium:automationName\": \"UIAutomator2\", \"appium:systemPort\":8301, \"appium:platformVersion\": \"13\", \"appium:deviceClass\":\"NA\"}"
] |
You need to specify |
if I specify browserName, it stop me to run tests on apps as you get an error saying cannot include both browserName and app details |
i have requirement to run tests on browsers as well as apps so i dont include both in relay config. but what i dont understand is if i run tests with appium:browserName --it works, if run with browserName capability on test, it doesnt work. |
@krishtoautomate, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
You can add two configurations—one for browsers and one for apps. |
💬 Please ask questions at:
|
can you provide sample config |
You can stack them up in the config
|
working with above suggested solution. but still didnt understand why not working for browserName. |
used below configuration for Android and facing error as : cannot use appPackage and browserName.
looks like this needed fix |
Original error: The desired should not include both of an 'appPackage' and a 'browserName' Host info: host: 'B01SO422', ip: 'fe80:0:0:0:6d:209:e46e:ce0a%en0' Build info: version: '4.11.0', revision: '040bc5406b' System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '11.5', java.version: '11.0.12' Driver info: driver.version: unknown Build info: version: '4.11.0', revision: '040bc5406b' System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '11.5', java.version: '11.0.12' Driver info: driver.version: unknown Build info: version: '4.11.0', revision: '040bc5406b' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.49-linuxkit-pr', java.version: '11.0.20' Driver info: driver.version: unknown |
This is defect which need to be investigated why selenium hub is struck in queue. May be if platformName = ANDROID, browser manager should ignore download of drivers. |
This error comes directly from Appium. |
This is about proper configuration and sending the appropriate capabilities. I have shared the links above where you can join our chat and ask questions, I will be there and we can continue. This is not a forum but rather an issue tracker. |
Yes this came from appium but the below one going to queue when trying to send browserName = Chrome is from selenium configs = [ |
Agree but below one came from selenium: configs = [ broswerName:Chrome is going to Queue appium:browserName is working fine |
Looks like their is bug in slot-matcher when browserName capability is parsed. if browserName doesnt exist, it is not matching with any other capabilities. as browserName, browserVersion and platformName are default slot matcher with 'and' condition instead of 'or'. posted same in discussions* |
here is the fix - which is also tested in my local.
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
used below capabilities to run tests on device browser and tests are going to Queue
{
"browserName": "Chrome",
"platformName": "ANDROID",
"appium:automationName": "UIAutomator2"
}
with below capabilities, tests are running on device browser without issue.
{
"appium:browserName": "Chrome",
"platformName": "ANDROID",
"appium:automationName": "UIAutomator2"
}
attached relay details:
ANDROID-06a49bf4.txt
ANDROID-06a49bf4.yml.txt
ANDROID-06a49bf4.txt
ANDROID-06a49bf4.yml.txt
How can we reproduce the issue?
Relevant log output
Operating System
macOS Ventura
Selenium version
Java JDK 11
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 116
Are you using Selenium Grid?
4.11
The text was updated successfully, but these errors were encountered: