Assert the text entered in textbox using selenium – getText() vs getAttribute(“value”)

Many automation QAs confuse with which selenium method we need to use to fetch the textbox value from the web application. The short answer is getAttribute(“value”) Let’s consider qavbox.github.io/demo/signup The username text box with id=username Output – qavbox getAttribute(“value”) is used to fetch the value present in side element’s value attribute if any, also used…

WebdriverIO locator strategies and how to use it

In this post, we will discuss the possible locator strategies that webdriverIO provides to identify browser elements. We can use below command to locate the browser element[s] browser.findElement(locator:String) or $(locator:String) browser.findElements(locator:String) or $$(locator:String) XPATH & CSSSelector patterns – webdriverIO supports all the xpath and CSS Selectors patterns. Along with Xpath / CSSSelector, webdriverIO has it’s…

Getting started with Appium and WebdriverIO for mobile app testing

WebdriverIO is an advanced automation framework for web and mobile application. It’s basically a wrapper on top of selenium (WebDriver protocol with nodeJS) for web automation and wrapper on top of appium for mobile application. As per the appium client, Appium suggests to use webdriverio for appium with javascript/typescript instead of deprecated appium javascript client…

New Appium inspector & it’s usage

With the introduction of appium server 2.x, we have to run the appium server either by code or as CLI command, we can’t use the appium desktop which in turn provides the appium inspector. To overcome above issue, appium provided separate appium inspector tool. There are 2 ways to get the appium inspector tool Web…