Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. WebdriverIO
  2. ===========
  3. > Next-gen browser and mobile automation test framework for Node.js
  4. This package provides an easy to manage API and a lot of syntactical sugar on top of the WebDriver specification. You can use WebdriverIO as a standalone package or via a testrunner using [`@wdio/cli`](https://webdriver.io/docs/clioptions.html). WebdriverIO allows to run tests locally using the WebDriver or Chrome DevTools protocol as well as remote user agents using cloud providers like [Sauce Labs](https://saucelabs.com/).
  5. ## Installation
  6. You can install WebdriverIO via NPM:
  7. ```sh
  8. $ npm install webdriverio
  9. ```
  10. ## Usage
  11. WebdriverIO by default uses Puppeteer to automate a browser like Chrome, Firefox or Chromium Edge. So if you have Chrome installed, the following script should start a browser for you and get the title of the page:
  12. ```js
  13. import { remote } from 'webdriverio'
  14. let browser
  15. ;(async () => {
  16. browser = await remote({
  17. capabilities: { browserName: 'chrome' }
  18. })
  19. await browser.navigateTo('https://www.google.com/ncr')
  20. const searchInput = await browser.$('#lst-ib')
  21. await searchInput.setValue('WebdriverIO')
  22. const searchBtn = await browser.$('input[value="Google Search"]')
  23. await searchBtn.click()
  24. console.log(await browser.getTitle()) // outputs "WebdriverIO - Google Search"
  25. await browser.deleteSession()
  26. })().catch((err) => {
  27. console.error(err)
  28. return browser.deleteSession()
  29. })
  30. ```
  31. See the raw [protocol example](https://www.npmjs.com/package/webdriver#example) using the `webdriver` package to get a glance on the differences.
  32. For more information on [options](https://webdriver.io/docs/options.html#webdriver-options), [multiremote usage](https://webdriver.io/docs/multiremote.html) or integration into [cloud services](https://webdriver.io/docs/cloudservices.html) please check out the [docs](https://webdriver.io/docs/gettingstarted.html). If you want to use WebdriverIO for testing purposes, it is recommended to use the [WebdriverIO Testrunner](https://webdriver.io/docs/clioptions.html).