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
This is the simple answer, for python at least.
from selenium import webdriver profile = webdriver.FirefoxProfile() profile.set_preference("javascript.enabled", False); driver = webdriver.Firefox(profile)