Site Loader
Auckland, New Zealand
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

Post Author: Karthik kk

5 Replies to “Getting started and writing simple code with Coypu for Selenium”

  1. Hi Karthik,
    Neat video!! Can you explain a bit more on how the tests are loosely coupled to the UI using Coypu? As per my understanding Coypu is still going to find elements from the UI the difference being the different type of Selectors.

    Correct me if I am wrong.

    Thanks in advance.

    1. According to my understand, Coypu can easily work with the visible text of the control not mentioning the id, xpath or css.

      But, in our case, we are still identifying the control using the ID hence its not demonstrating the essence of it.

      Thanks
      Karthik KK

  2. Hi Karthik,

    I copied code for this video, but when I’ve stared test it’s only opened Firefox and nothing happened. Do you have any ideas why? Thank you in advance.
    All of your videos are really great.

    Sergey

  3. Looking at this, I have a test that checks certain values/option labels are in a . How would I check this using coypu?

Leave a Reply

Your email address will not be published. Required fields are marked *