GithubHelp home page GithubHelp logo

dukererenst / selenide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pydawan/selenide

0.0 1.0 0.0 8.85 MB

Concise UI Tests with Java!

Home Page: http://selenide.org

License: MIT License

Shell 0.08% XSLT 0.71% Java 95.98% HTML 3.23%

selenide's Introduction

Selenide = UI Testing Framework powered by Selenium WebDriver

Build Status Maven Central Sonar Quality Gate Sonar Coverage MIT License Free

Join the chat at https://gitter.im/codeborne/selenide Присоединяйся к чату https://gitter.im/codeborne/selenide-ru Follow Slack chat Слак чат

What is Selenide?

Selenide is a framework for writing easy-to-read and easy-to-maintain automated tests in Java. It defines concise fluent API, natural language assertions and does some magic for ajax-bases applications to let you focus entirely on the business logic of your tests.

Selenide is based on and is compatible to Selenium WebDriver 2.0 and 3.0

@Test
public void testLogin() {
  open("/login");
  $(By.name("user.name")).setValue("johny");
  $("#submit").click();
  $("#username").shouldHave(text("Hello, Johny!"));
}

Look for detailed comparison of Selenide and Selenium WebDriver API.

Changelog

Here is CHANGELOG

How to start?

Just put selenide.jar to your project and import the following methods: import static com.codeborne.selenide.Selenide.*;

Look for Quick Start for details.

Resources

FAQ

See Frequently asked questions

Posts

  • Set-up environment with gradle, junit5, allure and selenide -- read a post on medium, grab from github
  • Small step do dramatically improve your tests speed -- read a post on medium
  • Another way to improve tests speed -- read a post on medium

How to build Selenide?

git clone https://github.com/selenide/selenide.git
cd selenide
./gradlew jar

After build you'll find Selenide's .jar file under build/libs/ directory.

To build Selenide on Windows use gradlew.bat jar command.

Feel free to fork, clone, build, run tests and contribute pull requests for Selenide!

Run test locally inside docker containers

  • Syncing browser images from existing configuration file
    • Install jq
    • Extract image names from JSON and automatically pull them:

      cat /config/selenoid/browsers.json | jq -r '..|.image?|strings' | xargs -I{} docker pull {}

  • Start selenoid container
    • Install docker
    • Based on your operation system execute script. Check official document for correct script.
  • Start tests passing selenide.remote configuration variable with http://localhost:4444/wd/hub value

Authors

Selenide was originally designed and developed by Andrei Solntsev in 2011-2015.

Thanks

Many thanks to these incredible tools that help us creating open-source software:

Intellij IDEA YourKit Java profiler BrowserStack

License

Selenide is open-source project, and distributed under the MIT license

selenide's People

Contributors

asolntsev avatar vinogradoff avatar rosolko avatar borisosipov avatar azakordonets avatar angryziber avatar vadger avatar ostap-oleksyn avatar tsukakei avatar jane-ryabchenko avatar shimkiv avatar sirdir avatar kumarunster avatar anilreddy avatar anyone-can-test avatar dkorobtsov avatar mseele avatar simple-elf avatar admizh avatar juliaviluhina avatar sidelnikovmike avatar symonk avatar msdjl avatar justalexone avatar trixiegoff avatar pavelpp avatar mikeshysh avatar jreznot avatar tomaszczerminski avatar timurstrekalov avatar

Watchers

James Cloos 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.