Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Getting Started with WebdriverIO | Complete Tutorial for Beginners Step by Step

Автор: Automation Step by Step

Загружено: 2022-12-27

Просмотров: 76108

Описание:

ALL FREE COURSES ► https://automationstepbystep.com/
QUIZ - https://forms.gle/5AymstwdWxXhCipw7
00:00 Introduction
01:18 What is WebdriverIO
02:02 Features of WebdriverIO
03:30 Software and Hardware Requirements
06:24 How to install Nodejs on windows os
14:27 IDE (Visual Studio Code)
Project Setup
16:35 Create a new folder and open in IDE (VS Code)
19:57 Open terminal and run command npm init -y
23:14 Install webdriverio using command npm init wido and select options as needed
29:27 Webdriverio configuration file wdio.conf.js
31:12 Check webdriverio version npm ls webdriverio
31:51 How to run tests in webdriverio project
npx wdio run wdio.conf.js
npm run wide
To run specific tests npx wdio run wdio.conf.js --spec example.spec.js
35:30 How to create tests in webdriverio project
48:07 How to create allure reports in webdriverio project
56:25 Outro

What is WebdriverIO
Automation testing framework for browser and mobile testing
Free & Open-source
owned by a non-profit entity called OpenJS Foundation

Features
We can use WebdriverIO to automate:
🌐 modern web applications written in React, Vue, Angular etc
📱 hybrid or native mobile apps running on emulator/simulator or real device
💻 native desktop applications (e.g. written with Electron.js)
Can work with Shadow DOM and React Objects

Hardware & Software Requirements
Hardware
Desktop or Laptop with min 4GB RAM, 5 GB free space
Software
Node JS - v12.16.1 or higher
IDE (for JavaScript)
VS Code -    • Visual Studio Code  

Project Setup & WebdriverIO Installation
Step 1 - Create a new folder and open in IDE (VS Code)
Step 2 - Open terminal in VS Code and run commands npm init -y
npm init wdio
Step 3 - Select the options as required and install
Step 4 - Check WebdriverIO version npm ls webdriverio
Step 5 - Check wdio.conf.js file and project folders are created
Step 6 - To run existing tests
Run all tests in the folder configured in wdio.conf.js
npx wdio run wdio.conf.js
or
npm run wdio
Run specific tests npx wdio run wdio.conf.js --spec test1.js

How to create Tests
Step 1 - Create a new file under spec folder
Step 2 - Add the test script using it block (mocha)

describe('Demo Tests', () => {
it('My 1st Test', async () => {
browser.url('https://google.com/')
browser.pause(2000)
await $('[name="q"]').setValue("WebdriverIO");
await $('button[type="submit"]').click();
browser.keys('Enter')
})
})

$() Single dollar sign to find a single web element
$$() Double dollar sign to find multiple web elements

How to Generate and View Reports

Step 1 - Run - npm install @wdio/allure-reporter --save-dev
Step 2 - Add reporter config in wdio.conf.js
Step 3 - Run test and check Allure Results folder is generated
Step 4 - Install allure command line tool npm install -g allure-commandline --save-dev
Step 5 - Run commands
allure generate allure-results // this will generate allure-report folder
allure open // will start server and open report

#webdriverio
Refer - https://webdriver.io/docs/allure-repo...

GitHub Project - https://github.com/Raghav-Pal/Webdriv...

ASK RAGHAV ► https://bit.ly/2CoJGWf
STORIES BY RAGHAV ► https://automationstepbystep.com/stor...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you

You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can

NEVER STOP LEARNING
Raghav Pal

Getting Started with WebdriverIO | Complete Tutorial for Beginners Step by Step

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

WebdriverIO Как реализовать объектную модель страницы

WebdriverIO Как реализовать объектную модель страницы

Easiest way to create WebdriverIO Cucumber BDD Project with DEMO

Easiest way to create WebdriverIO Cucumber BDD Project with DEMO

I Lied About Being a Programmer (Here's What Happened)

I Lied About Being a Programmer (Here's What Happened)

ПЕРЕСТАНЬ ПЛАТИТЬ за Cursor AI. Используй эту БЕСПЛАТНУЮ и ЛОКАЛЬНУЮ альтернативу | VSCode+Roo Code

ПЕРЕСТАНЬ ПЛАТИТЬ за Cursor AI. Используй эту БЕСПЛАТНУЮ и ЛОКАЛЬНУЮ альтернативу | VSCode+Roo Code

Как Развернуть Веб-Приложение на VPS — Пошаговое Руководство для Начинающих

Как Развернуть Веб-Приложение на VPS — Пошаговое Руководство для Начинающих

How to Host a Personal Blog for Free Using Hugo & GitHub Pages

How to Host a Personal Blog for Free Using Hugo & GitHub Pages

Путин перестал говорить о войне | Что случилось (English subtitles)

Путин перестал говорить о войне | Что случилось (English subtitles)

Easiest way to Run WebdriverIO Tests from Jenkins

Easiest way to Run WebdriverIO Tests from Jenkins

Master WebdriverIO in 4 Hours | Complete WebdriverIO Tutorial for Beginners

Master WebdriverIO in 4 Hours | Complete WebdriverIO Tutorial for Beginners

Учебник Base44 для начинающих — пошагово

Учебник Base44 для начинающих — пошагово

WebdriverIO Beginner Tutorials

WebdriverIO Beginner Tutorials

WebdriverIO Tutorials

WebdriverIO Tutorials

Как создать собственный VPN сервер Vless XHTTP с графической панелью 3x-ui и доменом.

Как создать собственный VPN сервер Vless XHTTP с графической панелью 3x-ui и доменом.

WebDriverIO - JavaScript Tool - By Naveen AutomationLabs

WebDriverIO - JavaScript Tool - By Naveen AutomationLabs

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

#AskRaghav | Cypress Or Selenium | Which is better automation platform |

#AskRaghav | Cypress Or Selenium | Which is better automation platform |

5 Уровней ИИ-Кодинга: от n8n и Cursor до Figma MCP и Google Stitch

5 Уровней ИИ-Кодинга: от n8n и Cursor до Figma MCP и Google Stitch

Selenium 4 Beginner Tutorial 1 | Introduction, Setup & Browser Actions | Step by Step

Selenium 4 Beginner Tutorial 1 | Introduction, Setup & Browser Actions | Step by Step

Microsoft begs for mercy

Microsoft begs for mercy

Учебник по Excel за 15 минут

Учебник по Excel за 15 минут

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com