Closed ArnaudBuchholz closed 9 months ago
https://webdriver.io/docs/gettingstarted
import { remote } from 'webdriverio' const browser = await remote({ capabilities: { browserName: 'chrome', 'goog:chromeOptions': { args: process.env.CI ? ['headless', 'disable-gpu'] : [] } } }) await browser.url('https://webdriver.io') const apiLink = await browser.$('=API') await apiLink.click() await browser.saveScreenshot('./screenshot.png') await browser.deleteSession()
Checking the implementation detail, webdriver.io relies on puppeteer for Chrome and Selenium for other browsers. Hence, I am not sure of the added value to implement it.
https://webdriver.io/docs/gettingstarted