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 - Name Locator
WebdriverIO - Name Locator
一旦我们浏览一个网页,我们就必须与网页上的现有网站进行互动,例如点击连接/布顿,进入一个信箱内的案文,从而完成我们的自动化测试。
为此,我们的首要任务是确定这一要素。 我们可以使用名称作为识别要素。 这一定位器现在被折旧,只能与根据《JSONWire议定书》或《上诉》的旧浏览器相容。
在《网络用户法典》中,我们有选择,以以下格式具体说明某一要素的名称价值——
$( [name attribute= value ] )
或者,我们可以将这一表述放在如下变量中:
const p = $( [name attribute= value ] )
让我们确定以下形象中强调的it子,并进入文字——
上述图像中强调的内容具有检索的名称属性价值。
首先,遵循题为“快车道”的一章第1至5号步骤。
Step 5——建立光谱档案。 关于如何安装这些装置的细节见题为“Mocha装置”的章节。
// test suite name describe( Tutorialspoint apppcation , function(){ //test case it( Identify element with Name , function(){ // launch url browser.url( https://www.tutorialspoint.com/index.htm ) //identify element with Name then input text $( [name="search"] ).setValue( Selenium ) }); });
档案——由以下指挥部存档:
npx wdio run wdio.conf.js
在题为“Wdio.conf.js案”的章节和题为“编造档案”的章节中详细讨论了如何建立汇编档案的细节。
Advertisements