I have prepared web testing script on Mac OSX with watir-webdriver. It was running fine with Firefox. However, then I ran the script on Windows with Firefox and the text entry is slow, like typing each word individually. I have read couple of threads in regards to this problem, but never came to the solution. Maybe someone could shed some light on this.

Please also kindly note that I use browser.element(:xpath).set "text" to locate the elements to set the text.

Thank you very much in advance.

有帮助吗?

解决方案

The issue has been resolved using Clipboard gem. Instead of using .set or .value methods, I started using Clipboard copy / paste, which worked perfectly. I still do not consider this as best solution, but it can get the job done.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top