문제

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