Created
August 31, 2017 07:03
-
-
Save rhpijnacker/f133a8667e5f7269b116215a3c7c2257 to your computer and use it in GitHub Desktop.
safaridriver bug on input with style "overflow: hidden"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -w | |
require 'selenium-webdriver' | |
driver = Selenium::WebDriver.for :safari, driver_path: '/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver' | |
driver.manage.window.maximize | |
driver.navigate.to "http://localhost/input-overflow-test.html" | |
element = driver.find_element(:id => "input-overflow-default") | |
p element.selected? | |
p element.displayed? | |
element.click | |
element = driver.find_element(:id => "input-overflow-hidden") | |
p element.selected? | |
p element.displayed? | |
element.click | |
driver.quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>input test</title> | |
</head> | |
<body> | |
<input id="input-overflow-default" style="overflow: default;"> | |
<input id="input-overflow-hidden" style="overflow: hidden;"> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed the same issue. Do you know if their is any open issues for this or any workarounds?