Locate Element(s)

How can an web element be located? To understand that, we need to first understand HTML, the language for creating web pages. If you are not familiar with HTML, learn it from here.

we can take a look at … Read the rest

Access Shadow DOM Elements

What is Shadow DOM
Shadow DOM is an emerging standard for encapsulating DOM and styling, with composition. In another word: via Shadow DOM a Web Developer can hide details of certain web component from peer developers. The developer cannot access … Read the rest

Element Locating Strategy

A good element locating strategy shall be:

  • efficient: WebDriver shall find it fast
  • resilient: element-locating code can sustain the many changes that developers are going to make to the page
  • have good readability: No miles-long xpath strings or css selector
Read the rest