Why Selenide Andrew Boyd Who am I Senior

  • Slides: 18
Download presentation
Why Selenide? Andrew Boyd

Why Selenide? Andrew Boyd

Who am I? Senior Engineer at Liberty IT Dev/Tester/Dev. Ops Full stack application Driving

Who am I? Senior Engineer at Liberty IT Dev/Tester/Dev. Ops Full stack application Driving based insurance (Telematics)

Problem • Complicated client • Test cases are complicated • Devs hate writing UI

Problem • Complicated client • Test cases are complicated • Devs hate writing UI tests • Business want lots of UI tests

What is Selenide? • It’s a library, not a framework • Free & Open

What is Selenide? • It’s a library, not a framework • Free & Open Source • No rules on how you implement • Concise API • Powered by the Selenium Web Driver • Easy to use for beginners • Cleaner test code • More stable tests

Selenium vs Selenide • Selenium is not designed for testing - drives the browser

Selenium vs Selenide • Selenium is not designed for testing - drives the browser • Selenide is designed for testing • Selenide hides a lot of the pain that can happen when writing tests using Selenium code

Selenium vs Selenide Creating a browser and closing it:

Selenium vs Selenide Creating a browser and closing it:

Selenium vs Selenide Finding an element by id:

Selenium vs Selenide Finding an element by id:

Selenium vs Selenide Finding an element by text: Selenium requires x. Path

Selenium vs Selenide Finding an element by text: Selenium requires x. Path

Selenium vs Selenide Smart Waiting Not there right away? No problem, selenide waits

Selenium vs Selenide Smart Waiting Not there right away? No problem, selenide waits

Selenium vs Selenide Error Messages Stops the test when this appears

Selenium vs Selenide Error Messages Stops the test when this appears

Selenium vs Selenide Collections $ will get you one element $$ will get you

Selenium vs Selenide Collections $ will get you one element $$ will get you multiple

Selenium vs Selenide Screen Shots Automatically on test failure - build/reports/tests

Selenium vs Selenide Screen Shots Automatically on test failure - build/reports/tests

Selenium vs Selenide Let’s have a look at some code…

Selenium vs Selenide Let’s have a look at some code…

Beyond the Basics Sizzle Selectors

Beyond the Basics Sizzle Selectors

Beyond the Basics Custom Matchers css doesn't exist, but you can extend the condition

Beyond the Basics Custom Matchers css doesn't exist, but you can extend the condition class to add it. Allows you to create domain specific matchers

Selenium vs Selenide https: //github. com/codeborne/selenide/wiki/Selenide-vs. Selenium Great examples + responsive community

Selenium vs Selenide https: //github. com/codeborne/selenide/wiki/Selenide-vs. Selenium Great examples + responsive community

Alternatives http: //nightwatchjs. org/

Alternatives http: //nightwatchjs. org/

Questions

Questions