ArnaudBuchholz / ui5-test-runner

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

Integrate webdriver.io #68

Closed ArnaudBuchholz closed 5 months ago

ArnaudBuchholz commented 8 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()
ArnaudBuchholz commented 5 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.