contexts = driver.contexts print(contexts) webview = driver.contexts print('Current view ' + webview) # it prints WEBVIEW_66846.1 driver.switch_to.context(webview) - here is failing
[RemoteDebugger] Executing atom 'execute_script'
[W3C (2d1b2b68)] Encountered internal error running command: Error: Unable to load Atom 'execute_script' from file 'C:\Program Files\Mobile Center Server\server\appium113\node_modules\appium-remote-debugger\build\atoms\execute_script.js'
[W3C (2d1b2b68)] at getAtoms (C:\Program Files\Mobile Center Server\server\appium113\node_modules\appium-remote-debugger\lib\atoms.js:17:13)
[W3C (2d1b2b68)] at <anonymous>
Anyone had this error? I dont really know what to do =/
Currently I am using Appium, Selenium, Java, TestNG for native app. I am doing automation for iOS and Android and both functionality is same but yes element identifier is different in iOS and android. None of element have same name. Let’s say for login button element identifier is in following way
For Android @AndroidFindBy(id = "com.abc.bot:id/home_screen_sign_in_btn") private MobileElement signinbtn; For iOS @FindBy(xpath="//XCUIElementTypeButton[@name='Log In']") private WebElement logInButton;
Apart from that we are using CircleCI and for iOS and Android have different pipeline and different branch too. My question is, should I keep iOS and Android in same repo or different branch. Can someone explain pros and cons please? Should I use same repo?