appium: 🐞 bug: Using "--allow-insecure chromedriver_autodownload" start appium server. But switch_to.context('WEBVIEW_com.jackpot.farm.eggs') not work</h1> <div class="body"><h3>Is there an existing issue for this?</h3> <ul> <li><input checked disabled type="checkbox"> I have searched the existing issues</li> </ul> <h3>Appium Version</h3> <p>2.13.1</p> <h3>Appium Host Type</h3> <p>Command Line</p> <h3>Are you using Appium components not maintained by the Appium team?</h3> <p><em>No response</em></p> <h3>Is this issue reproducible using the latest components?</h3> <ul> <li><input checked disabled type="checkbox"> I confirm the issue is still reproducible with the latest component versions</li> </ul> <h3>Current Behavior</h3> <p>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.</p> <h3>Expected Behavior</h3> <p>Run the driver.switch_to.context(‘WEBVIEW_com.jackpot.farm.eggs’) success</p> <h3>Appium Log</h3> <p><em>No response</em></p> <h3>Environment Details</h3> <ul> <li>Debug details (<code>appium --show-debug-info</code>):</li> <li>Last component version(s) which did <em>not</em> exhibit the problem:</li> <li>Platform and version of device under test:</li> <li>Real device or emulator/simulator:</li> </ul> <h3>Minimal Reproducible Example</h3> <p>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</p> <pre><code>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 </code></pre> <p>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’) <a href="https://github.com/user-attachments/files/18319845/appium.log">appium.log</a></p> <h3>Further Information</h3> <p>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.</p> </div> </section> <section class="issueAnalyticsMobile" id="analytics"> <h2>About this issue</h2> <ul> <li><a href="https://github.com/appium/appium/issues/20886" rel="nofollow">Original URL</a></li> <li>State: closed</li> <li>Created 2 years ago</li> <li>Comments: 18 (4 by maintainers)</li> </ul> </section><section class="issueComments" id="topComments"> <h2>Most upvoted comments</h2> <div class="comments"> <div class="comment" key="0"> <div class="commentBody"><p>Similar issue report: <a href="https://github.com/SeleniumHQ/selenium/issues/13738">https://github.com/SeleniumHQ/selenium/issues/13738</a></p> </div> <div class="commentMetadata"> <div class="reactions"> <span>+1</span> </div> <div class="attribution"> <a href="https://github.com/mykola-mokhnach" rel="nofollow">mykola-mokhnach</a> on <a href="https://github.com/appium/appium/issues/20886#issuecomment-2573101885" rel="nofollow">Jan 6, 2025</a> </div> </div> </div> </div> <div class="moreComments"> <a href="https://github.com/appium/appium/issues/20886" rel="nofollow">Read more comments on GitHub</a> </div> </section><section class="issueNavigation"> <div class="back"> <a href="https://errorism.dev/issues/appium-appium--bug-ios-couldnt-able-to-accept-prompt-elements-in-latest-xcuitest"> ← appium: 🐞 bug: iOS Couldn't able to accept Prompt elements in latest XCUITest </a> </div> <div class="forward"> <a href="https://errorism.dev/issues/appium-appium--xcuitest-no-available-web-pages-could-not-connect-to-a-valid-app-after-20-tries-debug-xcuite"> appium: [XCUITest] No available web pages: Could not connect to a valid app after 20 tries. [debug] [XCUITest] No web frames found → </a> </div> </section> </div> <aside class="sidebar"> <div class="tocWrapper"> <span class="tocTitle">Table of contents</span> <a class="tocItem" href="#issueDescription">Issue description</a> <a class="tocItem" href="#topComments">Top comments</a> </div> <div class="analyticsWrapper"> <span class="analyticsTitle">About this issue</span> <a class="analyticsItem" href="https://github.com/appium/appium/issues/20886" rel="nofollow">Original URL</a> <span class="analyticsItem">State: closed</span> <span class="analyticsItem">Created 2 years ago</span> <span class="analyticsItem">Comments: 18 (4 by maintainers)</span> </div> </aside> </div> </main> <!--<footer class="footerContainer">--> <!-- <div class="footerContent">--> <!-- <div class="footerLinks">--> <!-- <a class="footerLink" href="/about">About Errorism</a>--> <!-- <a class="footerLink" href="/privacy-policy">Privacy Policy</a>--> <!-- <a class="footerLink" href="/contact">Contact</a>--> <!-- </div>--> <!-- </div>--> <!--</footer>--> </div> </body></html>