Lesson 1 of 88 min read
Decide what WebdriverIO should test
Foundation 1: WebdriverIO is an open-source Node.js test framework that drives real browsers through the WebDriver and WebDriver BiDi protocols, and mobile apps through Appium. It suits end-to-end checks of user journeys written in JavaScript or TypeScript. Our synthetic cart page has three rules: each item costs 250, a cart holds 1 to 5 items, and the FLAT50 code takes 50 off totals of 500 or more. Passing tests prove these rules on this page, not a real shop. Start with a short note before adding tooling. This free orientation uses synthetic cart rules; it does not run WebdriverIO inside the website.
Key takeaways
- 1Identify the rule and the test that proves it.
- 2Write an observable expectation and an excluded claim.
- 3Keep described extensions distinct from performed checks.
Synthetic example
System: synthetic cart page 250 per item, 1-5 items FLAT50: -50 from a 500 total Out of scope: payments, real catalogue
Go deeper
Expert notes beyond the basics
- 01
Reason through the example
WebdriverIO is an open-source Node.js test framework that drives real browsers through the WebDriver and WebDriver BiDi protocols, and mobile apps through Appium. It suits end-to-end checks of user journeys written in JavaScript or TypeScript. Our synthetic cart page has three rules: each item costs 250, a cart holds 1 to 5 items, and the FLAT50 code takes 50 off totals of 500 or more. Passing tests prove these rules on this page, not a real shop.
- 02
Official reference
WebdriverIO documentation: https://webdriver.io/docs/gettingstarted . Use installed-version guidance and actual evidence.
Common mistakes to avoid
- - Fixed pauses instead of retrying matchers.
- - Pasting real customer data or tokens into tests.
Try it yourself
Write a rule, action, evidence and limitation for this topic.
Write your answer on paper or in a sheet first, then compare.
Interview questions
How to answer like a confident QA engineer
- Q1
What does WebdriverIO drive?
Model answer
Real browsers and mobile apps through automation protocols
- Q2
What is outside this check?
Model answer
Other browsers, live backends, performance and production configuration need separate evidence.
Knowledge check
+5 points
What does WebdriverIO drive?
