Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Element Send Keys" doesn't use implicit wait for element to become keyboard-interactable #2104

Open
titusfortner opened this issue Apr 13, 2023 · 1 comment

Comments

@titusfortner
Copy link

System

  • Version: 0.33.0
  • Platform: Mac BigSur
  • Firefox: 111.0.1 (64-bit)
  • Selenium: 4.8.3

The spec says for send keys:

Wait in an implementation-specific way up to the session implicit wait timeout for element to become keyboard-interactable.

Testcase

The first click will wait one second and then make the input element displayed.

driver.manage.timeouts.implicit_wait = 2
driver.get 'https://www.selenium.dev/selenium/web/dynamic.html'
driver.find_element(id: 'reveal').click
driver.find_element(id: 'revealed').send_keys('Displayed')

Stacktrace

     Selenium::WebDriver::Error::ElementNotInteractableError:
       Element <input id="revealed"> is not reachable by keyboard
     # RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
     # WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:180:5
     # ElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:290:5
     # webdriverSendKeysToElement@chrome://remote/content/marionette/interaction.sys.mjs:624:13
     # interaction.sendKeysToElement@chrome://remote/content/marionette/interaction.sys.mjs:598:11
     # sendKeysToElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:516:29
     # receiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:157:31
     # ./spec/waits/waits_spec.rb:49:in `block (2 levels) in <top (required)>'

Trace-level log

https://gist.github.com/titusfortner/0b7ce400f00488dd6cc80bb006974451#file-firefox_send_keys-log

@whimboo
Copy link
Collaborator

whimboo commented Jul 7, 2023

Thanks @titusfortner! I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1842214 to track the required work.

@whimboo whimboo changed the title Implicit Wait Behavior "Element Send Keys" doesn't use implicit wait for element to become keyboard-interactable Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants