I am wondering how do I disable javascript when using selenium so I can test server side validation.
I found this article but I don't know what to really do. Like I make this javascript file then what?
http://thom.org.uk/2006/03/12/disabling-javascript-from-selenium/
In the meantime better alternatives did arise, please see the other answers e.g. https://stackoverflow.com/a/7492504/47573 .
Other possibilities would be:
Good answer for 2009, not so much for 2018. :)
True, I see if I can delete it. Edit: nope, can't delete accepted answer and can't un-accept it. Edit2: edited answer to reference currently the ones with highest votes. Thx @damn 👍
In 2018 it works like this stackoverflow.com/a/53054654/7685008