** Changed in: webapps-sprint Status: Fix Committed => Fix Released
-- You received this bug notification because you are a member of Ubuntu WebApps bug tracking, which is subscribed to Oxide. https://bugs.launchpad.net/bugs/1421423 Title: send_keys in oxide webdriver is not implemented Status in Oxide: Fix Released Status in webapps-sprint: Fix Released Bug description: I'm trying to automate a test using the oxide webdriver, but an error is raised when I try to send_keys to an input field. To reproduce: Launch the webbrowser with devtools. Something like: elopio@tangamandapio76-desktop:~/workspace/canonical/webbrowser- app/trunk$ UBUNTU_WEBVIEW_DEVTOOLS_HOST=127.0.0.1 UBUNTU_WEBVIEW_DEVTOOLS_PORT=9221 ./src/app/webbrowser/webbrowser-app Install selenium from the ppa: https://launchpad.net/~canonical- platform-qa/+archive/ubuntu/selenium Try to send_keys: $ python3 >>> from selenium import webdriver >>> from selenium.webdriver.chrome.options import Options >>> import subprocess >>> CURRENT_ARCHITECTURE = subprocess.check_output(["dpkg-architecture", "-qDEB_HOST_MULTIARCH"], universal_newlines=True).strip() >>> CHROMEDRIVER_EXEC_PATH = "/usr/lib/{}/oxide-qt/chromedriver".format(CURRENT_ARCHITECTURE) >>> DEFAULT_WEBVIEW_INSPECTOR_IP = '127.0.0.1' >>> DEFAULT_WEBVIEW_INSPECTOR_PORT = 9221 >>> options = Options() >>> options.binary_location = '' >>> options.debugger_address = '{}:{}'.format(DEFAULT_WEBVIEW_INSPECTOR_IP, DEFAULT_WEBVIEW_INSPECTOR_PORT) >>> driver = webdriver.Chrome(executable_path=CHROMEDRIVER_EXEC_PATH, chrome_options=options) >>> driver.get('http://amazon.com/') >>> driver = webdriver.Chrome(executable_path=CHROMEDRIVER_EXEC_PATH, chrome_options=options) >>> driver.get('http://amazon.com/')>>> search_bar = driver.find_element_by_id('nav-searchbar') >>> search_text_field = search_bar.find_element_by_id('twotabsearchtextbox') >>> search_text_field.send_keys('Test') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webelement.py", line 303, in send_keys self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing}) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webelement.py", line 385, in _execute return self._parent.execute(command, params) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute self.error_handler.check_response(response) File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Not Implemented (Session info: content shell=) (Driver info: chromedriver=2.12,platform=Linux 3.18.0-12-generic x86_64) The same script works using the firefox webdriver. To manage notifications about this bug go to: https://bugs.launchpad.net/oxide/+bug/1421423/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-webapps-bugs Post to : ubuntu-webapps-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-webapps-bugs More help : https://help.launchpad.net/ListHelp