ArnaudBuchholz / ui5-test-runner

A test runner for UI5 applications enabling parallel execution of tests.
https://arnaudbuchholz.github.io/ui5-test-runner/
MIT License
22 stars 9 forks source link

Integrate webdriver.io #68

Closed ArnaudBuchholz closed 9 months ago

ArnaudBuchholz commented 1 year 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()
ArnaudBuchholz commented 9 months ago

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.