Getting started and writing simple code with Coypu for Selenium
Karthik kk
In the last post we introduced Coypu, an advance wrapper tool which is more robust and powerful on the top of Selenium. In this post we will try to understand some of the features has in Coypu out-of-box as opposed to Selenium in detail.
Coypu
Most of the methods in coypu are Domain specific, meaning their methods are meaningful based on the action it’s going to perform, like one we do for our Keyword driven framework, some of the methods are this
FillIn as opposed to sendKeys of selenium
ClickButton/ClickLink as opposed to generic Click
Choose method for selecting the option button
Check method for checking the check box
Selenium vs Coypy
Here is the complete video of above discussion
Here is the complete code of above video
var sessionConfiguration = new SessionConfiguration()
{
Browser = Browser.Firefox,
AppHost = "executeautomation.com",
};
var browser = new BrowserSession(sessionConfiguration);
browser.Visit("/demosite/Login.html");
browser.FillIn("UserName").With("admin");
browser.FillIn("Password").With("password");
browser.ClickButton("Login");
Thanks for reading the post and watching the video!!!
Please leave your comments and let me know if there is anything I should update in this post.
Thanks,
Karthik KK