Home > QA

Different approaches for writing effective Xpaths for Web Automation

Are you new to web automation and struggling with crafting Xpaths for various scenarios? Look no further – this guide covers all possible ways to write Xpaths to suit every situation. Whether the web element's text is dynamic, attributes are unique, or you're dealing with complex structures, we've got you

This Article is TAGGED in , , , , , , , , . Read more

Select value from drop-down in Selenium using Python

Sometimes we need to select a value from drop down in selenium. This drop down list can be of country, state, city etc.. In selenium using python, we can select values from drop-down using following sample code snippet: [crayon-660577cde1dd9492790000/] Decoding code 1. from selenium import webdriver:  This line states that, from selenium module/library webdriver

This Article is TAGGED in . Read more

Python sample programs – Part 1

  1. Calculate the Average of Numbers in a Given List [crayon-660577cde21d5654961937/] 2. Exchange the Values of Two Numbers Without Using a Temporary Variable [crayon-660577cde21de469306357/] 3. Reverse a Given Number [crayon-660577cde21e2961631801/] 4. Check Number is Positive or Negative [crayon-660577cde21e6105371108/] 5. Take in the Marks of 5 Subjects and Display the Grade [crayon-660577cde21ea814355447/] 6. Print all Numbers in a Range Divisible by

This Article is TAGGED in . Read more

Protractor: Script execution using custom command

This article will cover below points:  Use of custom command instead of protractor along with user defined options to control the execution of script. Protractor script execution for different test suites using different configuration files i.e. In regression test suite we will execute all spec files In smoke test suite we execute

This Article is TAGGED in , , , , , , . Read more

Spy(Element Identification) tool for automating windows 10 applications

I was recently automating windows application and searching for spy tools to identify windows 10 elements. I found “WAD UIRecorder” tool which works better compare to other spy tools in Windows 10. Follow below steps to download and configure “WAD UIRecorder”: Step1: Below is the link to download the spy tool. https://github.com/microsoft/WinAppDriver/releases Step2: Click

This Article is TAGGED in , . Read more

Integrating Winium with Katalon studio

Winium is used to automate windows applications. Katalon does not support windows automation. If any web application needs interaction with windows application then we can integrate Winium with Katalon studio. Below are the steps to integrate Winium with Katalon Studio: Step1: Download the Zip file “Winium.Desktop.Driver.zip” from https://github.com/2gis/Winium.Desktop/releases Step2: Extract the downloaded Zip

This Article is TAGGED in , , . Read more

Finding elements of table in selenium

Elements in table can be accessed using xpath. Here is the sample HTML code: [crayon-660577cde30dc307838513/] To locate first “td” in first “tr” in above HTML code. Below is the xpath:   //table//tr[1]/td[1] To locate second “td” in first “tr”. Below is the xpath. //table//tr[1]/td[2] To locate cells of Pune and Mumbai below is the xpath. //table//tr[1]/td To locate the

This Article is TAGGED in , . Read more

File Upload Using Windows Automation Tool And Selenium

Here are the step to upload file using selenium Click on Select file / Select button (This part could be handled using Selenium) Select file from open dialogue box(This part could not be handled using selenium)  Click on Upload or Upload file button. File Upload for INPUT tag with TYPE ="file" Example Url:  If Select file

This Article is TAGGED in , , . Read more

How to use @Parameters and @Optional annotations in the TestNG

TestNG @Parameters One of the important features of TestNG is parameterization. This annotation allows the user to pass parameter values to test methods through the testng.xml file. @Parameters({"param-name"}) Let's write a simple example of passing parameters to test methods through the XML configuration file. Steps to Perform: Open chrome and enter the Demo

This Article is TAGGED in , , , . Read more