Microsoft Edge WebDriver on RS3: WebElement.click() not working for <input type="file">

Issue #15015840 • Assigned to Steven K.

Details

Author
Sandeep N.
Created
Dec 8, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

With the RS3 (Release 16299) version of Edge WebDriver, WebElement.click() doesn’t work for <input type="file">. It throws a WebDriverException: Message: Invalid argument

Please note:

  1. It works for RS2
  2. It works for <input type="submit"> (and possibly other input types)

Code used to reproduce:

driver = webdriver.Edge()
driver.get("url")
time.sleep(5)
try:
        element = driver.find_element_by_id("id")
        print('Clicking element')
        element.click()
except Exception as e:
        print(traceback.format_exc())
finally:
        driver.quit()

Full stack trace:

Traceback (most recent call last):
  File "c:\Users\admin\Desktop\ClickScript2.py", line 12, in <module>
    element.click()
  File "c:\ep_test\ModularTestFramework\tools\windows\python\2.7.13\x64\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 78, in click
    self._execute(Command.CLICK_ELEMENT)
  File "c:\ep_test\ModularTestFramework\tools\windows\python\2.7.13\x64\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 499, in _execute
    return self._parent.execute(command, params)
  File "c:\ep_test\ModularTestFramework\tools\windows\python\2.7.13\x64\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "c:\ep_test\ModularTestFramework\tools\windows\python\2.7.13\x64\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
WebDriverException: Message: Invalid argument

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in