Selenium Browser commands & Interactive commands

Ratings:
(4)
Views:0
Banner-Img
  • Share this blog:

 

Selenium Browser commands

1) start ():-- It is to launch the browser.

2) open():- It is to open the URL of the application

3)window the main method():- It is to maximize the window

4) stop():-It will stop the execution of the script and also closes the browser .

Ex:-selenium.stop();

Desired to gain proficiency on Selenium? Explore the blog post on Selenium Training Online 
to become a pro in Selenium.

Selenium Interactive commands;-

  • type() :-It is to enter some value in the text box

            Syntax:- selenium.type(“locater”,”value”);              

                   Ex:-selenium.type(“f-id”,”jaridselenium”);  

  • click:-By using this command we can click on button. I,e radio button, check box,images and links.

           Syntax:-selenium.click(“locator”);//radio button,check box Selenium.click(“link=display num”) //link            

                    Ex:-selenium.click(“css=input-signin”);

Learn more about Selenium Interview Questions in this blog post.
  • select() :- It is to select some values in dropdown or list box or combo box

Syntax:-selenium.select(“locator”,”value”);

 

You liked the article?

Like : 0

Vote for difficulty

Current difficulty (Avg): Medium

Recommended Courses

1/15

About Author
Authorlogo
Name
TekSlate
Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox