Thursday, October 29Be an Automation Engineer

Tag: Identifiers

Element Locators in WebdriverIO

Locators, WebdriverIO

Selenium supports 8 different element locating stategies like @id, @className, @xpath, @css etc.. In selenium we need to specify which locator we are passing like if we are passing xpath then we need to specify it with By.xpath(‘locator’).

WebdriverIO has simplified element location strategies. We don’t need to specify whether we are passing xpath/css. Simply we can write‘locator’). WebdriverIO » Continue Reading.