Open lukeis opened 8 years ago
Reported by barancev
on 2013-10-16 06:18:45
I'm seeing something similar (sendKeys sends a '!' character, but it does not appear
in the target field) with Selenium 2.44.0 and Firefox 35.0.1 (on Mac OS 10.8.5 if that
matters). I'll try to make a small test case which reproduces the problem.
Reported by matthew.sheppard
on 2015-02-23 06:01:15
Seems to somehow be page specific, but I haven't identified how yet. For now, I can
reproduce the problem with...
public static void main(String[] args) throws IOException {
WebDriver driver = new FirefoxDriver();
driver.get("http://search-au.funnelback.com/s/search.html?collection=funnelback_documentation");
WebElement queryBox = driver.findElement(By.id("query"));
queryBox.sendKeys("!foo");
String actualValue = queryBox.getAttribute("value");
if (!actualValue.contains("!")) {
System.out.println("Value was not set as expected - Was '" + actualValue
+ "'");
}
driver.quit();
}
Reported by matthew.sheppard
on 2015-02-23 06:33:57
Ok, I think I pinned it down to the combination of jQuery UI's autocomplete with selenium.
This is a small page which reproduces the problem...
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function() {
var availableTags = [
"Java",
"JavaScript"
];
$( "#query" ).autocomplete({
source: availableTags
});
});
</script>
</head>
<body>
<input id="query" />
</body>
</html>
...with the following code...
WebDriver driver = new FirefoxDriver();
driver.get("file:///Users/msheppard/Desktop/test.html");
WebElement queryBox = driver.findElement(By.id("query"));
queryBox.sendKeys("!foo");
String actualValue = queryBox.getAttribute("value");
if (!actualValue.contains("!")) {
System.out.println("Value was not set as expected - Was '" + actualValue
+ "'");
}
driver.quit();
Hope that's helpful.
Reported by matthew.sheppard
on 2015-02-24 22:50:58
I'm seeing the same issue with "&" and "("
Reported by sahokoh
on 2015-02-28 00:29:49
I occurrered for me, with "!", "("
I used ruby version of webdriver(2.45.0).
Reported by takaidohigasi
on 2015-02-28 17:06:41
Code I worked is as follows
https://github.com/takaidohigasi/selenium_demo/blob/develop/bin/ruby_warrior_demo.rb
Reported by takaidohigasi
on 2015-02-28 17:10:53
Reported by luke.semerau
on 2015-09-17 17:45:55
Originally reported on Google Code with ID 6411
Reported by
takatake2002
on 2013-10-15 20:11:37