Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top