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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -