-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
I-defectSomething is not working as intendedSomething is not working as intended
Description
What happened?
This issue is indirectly related to selenium. We are seeing this behavior where some capabilities sent by the appium ruby client in snake case get converted to camel case.
On downgrading the selenium version to 3, we are not seeing this issue.
All details can be found here. Also as mentioned here, things working fine in selenium v3.
How can we reproduce the issue?
Details can be found here
Relevant log output
Script used to run session
require 'rubygems'
require 'appium_lib'
SERVER_URL = "tcp://localhost:4723/wd/hub"
desired_caps = {
"platformName" => "android",
"device" => "Samsung Galaxy S21 Ultra",
"app" => "/Users/viratmishra/Downloads/fast-speed-test-1-0-5.apk", #any local app path
"os_version" => "11.0",
"custom_cap" => "custom_value",
"custom_cap_2" => {
"custom_nested_key" => "custom_value"
},
"custom_cap_3" => {
"custom_nested_key_2" => {
"custom_nested_key_3" => "custom_value"
}
},
}
appium_driver = Appium::Driver.new({
'caps' => desired_caps,
'appium_lib' => {
:server_url => SERVER_URL
}}, true)
driver = appium_driver.start_driver
wait = Selenium::WebDriver::Wait.new(timeout: 40)
driver.quit
Appium server logs
[Appium]
[Appium] The next major version of Appium (2.x) will **require** the
[Appium] 'automationName' capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] 'automationName=UiAutomator1'
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add 'automationName=UiAutomator1' to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] 'Drivers' menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session
[Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] "alwaysMatch": {
[BaseDriver] "platformName": "android",
[BaseDriver] "appium:device": "Samsung Galaxy S21 Ultra",
[BaseDriver] "appium:app": "/Users/viratmishra/Downloads/fast-speed-test-1-0-5.apk",
[BaseDriver] "appium:os_version": "11.0",
[BaseDriver] "appium:custom_cap": "custom_value",
[BaseDriver] "appium:custom_cap_2": {
[BaseDriver] "customNestedKey": "custom_value"
[BaseDriver] },
[BaseDriver] "appium:custom_cap_3": {
[BaseDriver] "customNestedKey_2": {
[BaseDriver] "customNestedKey_3": "custom_value"
[BaseDriver] }
[BaseDriver] }
[BaseDriver] },
[BaseDriver] "firstMatch": [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] device
[BaseDriver] os_version
[BaseDriver] custom_cap
[BaseDriver] custom_cap_2
[BaseDriver] custom_cap_3
[BaseDriver] Session created with session id: cc06c35d-3066-4edc-ae56-5154170364f6
[BaseDriver] Using local app '/Users/viratmishra/Downloads/fast-speed-test-1-0-5.apk'
[UiAutomator2] Checking whether app is actually present
[ADB] Using 'adb' from '/Users/viratmishra/Library/Android/sdk_old/platform-tools/adb'
[ADB] Running '/Users/viratmishra/Library/Android/sdk_old/platform-tools/adb -P 5037 start-server'
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android deviceOperating System
macOs Monterey
Selenium version
Ruby v4
What are the browser(s) and version(s) where you see this issue?
NA
What are the browser driver(s) and version(s) where you see this issue?
NA
Are you using Selenium Grid?
NA
Metadata
Metadata
Assignees
Labels
I-defectSomething is not working as intendedSomething is not working as intended