© 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_4

4. Element APIs and WebdriverIO Assertions

Shashank Shukla1  
(1)
Mandla, India
 
In the previous chapter, you learned about browser-specific APIs. This chapter discusses element-specific APIs. You use various assertions provided natively by WebdriverIO. Broadly, this chapter covers the following topics.
  • APIs and assertions

  • Presence or absence of elements

  • Selected and unselected elements

  • Displayed or hidden elements

  • Enabled and disabled elements

  • Clickable and unclickable elements

WebdriverIO element APIs and assertions have one basic difference. Element APIs/commands return true or false values. ...

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.