Reputation: 737
This would prove very useful for automating testing, but not limited to that. I wonder if some mainstream browser has a feature or extension allowing to control the browser using plain javascript to be executed in the debugger sandbox. I can't see such option in the command line help for firefox or chrome.
Upvotes: 0
Views: 140
Reputation: 9121
use Selenium IDE (a Firefox plugin) and if you are good with programming then Selenium WebDriver is one of the best options ever, using it you can deal with the browser using C#, or Java code, it supports other known languages.
Here is some lines of c# code that shows you how great Selenium is (this code can test a login page):
IWebDriver driver = new ChromeDriver("C:\\Drivers");
driver.Navigate().GoToUrl("http://www.website/login");
driver.FindElement(By.Name("username")).SendKeys("username");
driver.FindElement(By.Name("password")).SendKeys("password");
driver.FindElement(By.Name("submit")).Click();
Upvotes: 0