Skip to content
  • My Tutorials and Talks
  • The Little Tester comics
  • Twitter
  • Github
  • Flickr

imalittletester

Testing. With Java, Selenium, TestNG, Maven, Spring, IntelliJ and friends.

  • Home
  • automation
  • selenium
  • Selenium Testing Tutorials
  • The Waiter library

Category: css

CSS Selectors

Identifying HTML elements in order to interact with them within you tests can be done by using CSS Selectors, which use pattern matching to easily find these elements. Below are the most used patterns to identify the elements on a page and examples of their usage:

Posted onFebruary 25, 2014May 21, 2014Categoriesautomation, css, html, qa, selector, selenium, testing, tutorialTagsautomation, css, html, qa, selector, selenium, testing, tutorial3 Comments

Top Posts & Pages

  • @FindBy, Lists and using them to check for similar UI elements
    @FindBy, Lists and using them to check for similar UI elements
  • Removing all digits, non-digits, whitespaces (from Strings) and other usages of replaceAll
    Removing all digits, non-digits, whitespaces (from Strings) and other usages of replaceAll
  • Iframes, switchTo() and default content with Selenium
    Iframes, switchTo() and default content with Selenium
  • Selenium: How to correctly test whether an element is displayed (or not)
    Selenium: How to correctly test whether an element is displayed (or not)
  • Using HashMaps in automated tests
    Using HashMaps in automated tests
  • thewaiter: waiting for a URL in the browser to equal or contain a String, with Selenium
    thewaiter: waiting for a URL in the browser to equal or contain a String, with Selenium
  • Useful: generating random strings with RandomStringUtils
    Useful: generating random strings with RandomStringUtils
  • Extracting substrings with StringUtils from the Apache library
    Extracting substrings with StringUtils from the Apache library
  • Working with user prompts in Selenium
    Working with user prompts in Selenium
  • Use waits as assertions for your Selenium tests
    Use waits as assertions for your Selenium tests

Follow me on Twitter

My Tweets

Suggested Reading

  • My series of Maven related articles is out now
    My series of Maven related articles is out now
  • The Little Tester - Almost season 4
    The Little Tester - Almost season 4
  • The Little Tester #148
    The Little Tester #148
  • The Little Tester #147
    The Little Tester #147
  • The Little Tester #124
    The Little Tester #124
  • Automated testing of translations by using property files
    Automated testing of translations by using property files
  • The Little Tester #105
    The Little Tester #105
  • The Little Tester #159
    The Little Tester #159
  • The Little Tester #153
    The Little Tester #153
  • The Little Tester #149
    The Little Tester #149
Follow imalittletester on WordPress.com

RSS Feed

  • RSS - Posts
  • RSS - Comments

Flickr Photos

Pisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, RomaniaPisoaia Waterfall, Romania
More Photos
Blog at WordPress.com.
  • Follow Following
    • imalittletester
    • Join 2,664 other followers
    • Already have a WordPress.com account? Log in now.
    • imalittletester
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar