Home > Python

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-664a41c12e335236476553/] 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-664a41c12ebed278842180/] 2. Exchange the Values of Two Numbers Without Using a Temporary Variable [crayon-664a41c12ebf9617537232/] 3. Reverse a Given Number [crayon-664a41c12ebfd475318086/] 4. Check Number is Positive or Negative [crayon-664a41c12ec01878639024/] 5. Take in the Marks of 5 Subjects and Display the Grade [crayon-664a41c12ec05553863780/] 6. Print all Numbers in a Range Divisible by

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 with

This Article is TAGGED in , . Read more