© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
S. ShuklaPractical WebDriverIOhttps://doi.org/10.1007/978-1-4842-6661-8_6

6. Other Useful APIs

Shashank Shukla1  
(1)
Mandla, India
 
In this chapter, you learn more WebdriverIO API methods. These are methods that are good to know because they are often asked during interviews to check your knowledge. The chapter discusses the following.
  • Shadow DOMS

  • Getting an HTML page source and an element’s HTML code

  • Getting the active element, location, and size

  • Getting the tag name, property, and CSS property

Dealing with a Shadow DOM

A shadow DOM encapsulates an element’s DOM tree so that it can’t accidentally be changed by the main document. For instance, suppose there is a ...

Get Practical WebDriverIO: Learn to Automate Effectively Using WebDriverIO APIs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.