WebdriverIO Tutorial
Selected Reading
- WebdriverIO - Discussion
- WebdriverIO - Useful Resources
- WebdriverIO - Quick Guide
- Generate HTML reports from Allure
- Execute Tests with Mocha Options
- Running Tests from command-line parameters
- WebdriverIO - Data Driven Testing
- WebdriverIO - Running Tests in Parallel
- WebdriverIO - Waits
- WebdriverIO - JavaScript Executor
- WebdriverIO - Capturing Screenshots
- WebdriverIO - Debugging Code
- WebdriverIO - Alerts
- WebdriverIO - Scrolling Operations
- WebdriverIO - Multiple Windows/Tabs
- Chai Assertions on webelements
- WebdriverIO - Handling Radio Buttons
- WebdriverIO - Cookies
- WebdriverIO - Double Click
- WebdriverIO - Drag & Drop
- WebdriverIO - Frames
- WebdriverIO - Hidden Elements
- Handling Child Windows/Pop ups
- WebdriverIO - Mouse Operations
- Handling Checkboxes & Dropdowns
- WebdriverIO - Browser Navigation Commands
- WebdriverIO - Handling Browser Size
- WebdriverIO - General Browser Commands
- WebdriverIO - Happy Path Flow
- Expect Statement for Assertions
- WebdriverIO - Name Locator
- WebdriverIO - Class Name Locator
- WebdriverIO - Tag Name Locator
- WebdriverIO - ID Locator
- WebdriverIO - Link Text Locator
- WebdriverIO - CSS Locator
- WebdriverIO - Xpath Locator
- WebdriverIO - Wdio.conf.js file
- WebdriverIO - VS Code Intellisense
- WebdriverIO - Configuration File generation
- Selenium Standalone Server Installation
- WebdriverIO - Mocha Installation
- WebdriverIO - Package.json
- WebdriverIO - VS Code Installation
- WebdriverIO - Installation of NPM
- WebdriverIO - Getting Started with NodeJS
- WebdriverIO - Architecture
- WebdriverIO - Prerequisite
- WebdriverIO - Introduction
- WebdriverIO - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
WebdriverIO - Browser Navigation Commands
WebdriverIO - Browser Navigation Commands
网上浏览器使用的一些浏览器导航线如下:
browser.navigateTo(URL)
这一指挥用于对作为参数通过URL的申请采取行动。
Syntax
The syntax is as follows -
browser.navigateTo( https://the-internet.herokuapp.com/redirector )
browser.back()
这一指挥用于在浏览器历史上进行回击。
Syntax
The syntax is as follows -
browser.back()
browser.forward()
这一指挥用于在浏览器历史上向前推进。
Syntax
The syntax is as follows -
browser.forward()
browser.refresh()
这一指挥用于更新现有的网页。
Syntax
The syntax is as follows -
browser.refresh()
首先,遵循题为“快车道”的一章第1至5号步骤。
Step 5——建立光谱档案。 关于如何安装这些装置的细节见题为“Mocha装置”的章节。
// test suite name describe( Tutorialspoint apppcation , function(){ //test case it( Navigation , function(){ // launch url browser.url( https://www.tutorialspoint.com/about/about_careers.htm ) // navigate to another url browser.navigateTo("https://www.tutorialspoint.com/codingground.htm") //navigate back in history browser.back() //get title back in browser history console.log( Back in Browser history: + browser.getTitle()) //navigate forward in history browser.forward() //get title forward in browser history console.log( Forward in Browser history: + browser.getTitle()) //refresh browser browser.refresh() //get title after refresh console.log( Page Title after refresh: + browser.getTitle()) }); });
档案——由以下指挥部存档:
npx wdio run wdio.conf.js
在题为“Wdio.conf.js案”的章节和题为“编造档案”的章节中详细讨论了如何建立汇编档案的细节。
以下屏幕将登在你的电脑上:
指挥工作成功执行后,在浏览器历史中获取的网页名称——图西里斯角的职业生涯——正在印制。
接着,在浏览器历史中取得进步的网页名称——自由在线信息网和终端站。
最后,在网页复读后获得的网页标题是免费在线信息网和终端。
Advertisements