appium: đ bug: Using "--allow-insecure chromedriver_autodownload" start appium server. But switch_to.context('WEBVIEW_com.jackpot.farm.eggs') not work
Is there an existing issue for this?
- I have searched the existing issues
Appium Version
2.13.1
Appium Host Type
Command Line
Are you using Appium components not maintained by the Appium team?
No response
Is this issue reproducible using the latest components?
- I confirm the issue is still reproducible with the latest component versions
Current Behavior
When I run the driver.contexts code, I get [âNATIVE_APPâ, âWEBVIEW_com.jackpot.farm.eggsâ]. But when I ran driver.switch_to.context(âWEBVIEW_com.jackpot.farm.eggsâ), it failed.
Expected Behavior
Run the driver.switch_to.context(âWEBVIEW_com.jackpot.farm.eggsâ) success
Appium Log
No response
Environment Details
- Debug details (
appium --show-debug-info): - Last component version(s) which did not exhibit the problem:
- Platform and version of device under test:
- Real device or emulator/simulator:
Minimal Reproducible Example
def android_driver(device: dict): desired_caps = {âappium:appWaitDurationâ: 60000, âappium:skipLogcatCaptureâ: True, âappium:disableSuppressAccessibilityServiceâ: True, âplatformNameâ: âAndroidâ, âappium:automationNameâ: âuiautomator2â, âappium:newCommandTimeoutâ: 0, âautoGrantPermissionsâ: True, âappium:adbExecTimeoutâ: 120000, âappium:noResetâ: True, âappium:uiautomator2ServerLaunchTimeoutâ: 120000, âappium:udidâ: device.get(âappium:udidâ), âskipServerInstallationâ: True, âskipDeviceInitializationâ: True } # âautoWebviewTimeoutâ: 60000
driver = webdriver.Remote('127.0.0.1:4723',
options=UiAutomator2Options().load_capabilities(desired_caps),
)
driver.update_settings({'waitForIdleTimeout': 0})
driver.update_settings({'allowInvisibleElements': True})
driver.update_settings({'ignoreUnimportantViews': True})
driver.update_settings({'enableMultiWindows': True})
return driver
driver_test = android_driver({âappium:udidâ: â172.16.9.189:20142â}) contexts = driver_test.contexts driver_test.switch_to.context(âWEBVIEW_com.jackpot.farm.eggsâ) appium.log
Further Information
Command to start the appium service: appium --allow-insecure chromedriver_autodownload --session-override Iâm connected to a cloud phone, and the browser Iâve simply developed is based on chroium.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (4 by maintainers)
Similar issue report: https://github.com/SeleniumHQ/selenium/issues/13738