Home > Karan Jawalkar

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: from selenium import webdriver. from selenium.webdriver.support.ui import Select. driver = webdriver.Chrome('D:\\chromedriver.exe') driver.get('url') select = Select(driver.find_element_by_id('Country')) # select by visible

This Article is TAGGED in . Read more

Python sample programs – Part 1

1. Calculate the Average of Numbers in a Given List count=int(input("Average of how many numbers do you want to find?")) a=[] for i in range(0,count): number=int(input("Enter number: ")) a.append(number) average=sum(a)/count print("Average of numbers is: ",average) Output: Average of how many numbers do you want to find?5 Enter number: 2 Enter number: 3 Enter

This Article is TAGGED in . Read more

Selenium Grid Setup Run Scripts on multiple machines

Selenium Grid allows to run tests in parallel mode on different machines and different browsers available on that machines. Selenium grid working is based on Master Slave architecture. Main Components of Selenium Grid are:1. Hub: Hub acts as a master in Selenium Grid. There will be a single hub in the

This Article is TAGGED in . Read more

Lists in Python

List is the most commonly used collection in Python. It is used to store list of variables which may have different data types. It is also useful to implement stacks and queues data structures. Variables can be dynamically stored using Lists. Following are some features of list 1. Lists are written

This Article is TAGGED in , . Read more

How to use XPath Extractor in JMeter?

XPath extractor is post processor component of JMeter. XPath extractor extracts text from the HTML response based on XPath query provided. To use XPath extractor in the Test plan we need to add it as a child element of HTTP Request sampler. Example to use XPath Extractor in JMeter Test plan Step 1:

This Article is TAGGED in , , , . Read more

How to use Non GUI mode in JMeter

JMeter provides simple and user friendly GUI to users. Using the JMeter GUI mode user can use elements like Thread Group, samplers, Processors, Controllers, Timers etc. JMeter GUI mode also gives the facility to view and analyze the result of the script using different types of Listeners. Apart from the above

This Article is TAGGED in , . Read more

JMeter Tutorial

JMeter is an open source platform independent tool released on 15th Dec 1998. It was developed by Stefano Mazzocchi of the Apache Software Foundation. JMeter is mainly used for load testing along with API testing. Installation and Introduction of JMeter Install and Launch JMeter on Windows JMeter sample script JMeter Components Core JMeter Components and

This Article is TAGGED in , . Read more

Read data from CSV file using CSV Data set config in Jmeter

For reading data from CSV file, JMeter provides a config element called CSV Data Set Config. Below are the steps for configuring and executing CSV Data Set Config: Step 1: Go to File -> Click on New. User will see a new Test Plan as shown in below image: User needs to save

This Article is TAGGED in , . Read more