Giter VIP home page Giter VIP logo

.net-selenium-page-object's Introduction

SeleniumExample - Using Selenium with C#.NET

This solution demonstrates automated testing web pages with Selenium and C#.NET. It can also be used as a template for new Selenium test projects.

Three tests are included that run tests on the publically available demo website Altoro Mutual available at http://demo.testfire.net/. The tests test logging onto the website and transferring an amount between two accounts.

The tests can be executed on three browsers: Firefox, Chrome and Internet Explorer. The driver can be selected using the appsetting DriverToUse in the app.config file. To run the tests on Internet Explorer 11, the registry must be updated first so that the driver can maintain a connection to the browser. Import the registry file configure_ie_11_for_selenium_iedriverserver.reg to achieve this.

To run the Selenium tests, download the solution and run the NUnit tests. All selenium dependencies are included in the solution. Run the NUnit tests using Resharper ( http://www.jetbrains.com/resharper ), NUnit ( http://www.nunit.org ) or ContinuousTests ( http://continuoustests.com ).

The tests are structured according to the Page Object Pattern.

Out of the box Selenium supports locating elements using the element id or an xpath selector. The extension method FindElementByJQuery has been added to SeleniumExample with which elements can be located using a more versatile JQuery selector. Example:

_driver.FindElementByJQuery("input[name='btnSubmit']")

Alexander van Trijffel

.net-selenium-page-object's People

Contributors

alexandervantrijffel avatar

Watchers

James Cloos avatar borjarobles avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.