send_keys in oxide webdriver is not implemented

Bug #1421423 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
Fix Released
High
Alexandre Abreu
webapps-sprint
Fix Released
High
Alexandre Abreu

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.

Changed in oxide:
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
Changed in oxide:
milestone: none → branch-1.9
Changed in webapps-sprint:
milestone: none → sprint-11
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
Changed in webapps-sprint:
status: New → In Progress
Changed in oxide:
status: New → In Progress
Changed in oxide:
milestone: branch-1.9 → branch-1.10
Changed in oxide:
milestone: branch-1.10 → branch-1.11
Changed in oxide:
status: In Progress → Fix Committed
Changed in webapps-sprint:
status: In Progress → Fix Committed
Changed in oxide:
status: Fix Committed → Fix Released
Changed in webapps-sprint:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.