ruby - Disable hardware inputs on Selenium webdriver firefox -


I have a Ruby script to test the web page in Firefox. It sends mouse or keyboard events to the browser , But when the hardware mouse is moved, it affects my test.

How can I configure Firefox to forget hardware mouse and keyboard events?

You can use Xvfb to open for Firefox The virtual screen will provide. Actually you can run Xvfb with a screen number and by running export DISPLAY =: XX Firefox on that screen. You can use PhantomJS, but I will not recommend it because it is suspicious that any user will ever use it; It is better to test people with the browser they use.



Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

php - proc_open Too many open files in long running Symfony Console app -

c# - Show a huge number of data in DevExpress GridView -