سؤال

I'm using webdriver to fill out a input-field and for some reason all text is inserted but "(".

findElementById("elementId").sendKeys("This is a text"); -> This is a text
findElementById("elementId").sendKeys("method().getName()"); -> method).getName)
findElementById("elementId").sendKeys("(((((((("); -> 
findElementById("elementId").sendKeys("(((aaaa"); -> aaaa

The error appears to occur only in Firefox 14. When we run the test against Firefox 12, it works fine.

Any idea why this odd behavior?

هل كانت مفيدة؟

المحلول

Seems that the problem is with jQuery UI Auto-complete plugin. For some odd reason it interpret "(" as "ENTER".

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top