mobileNavlogo
headerlogo

Selenium Browser commands & Interactive commands

09 October, 2020

Ratings

Related Blogs

 

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”);

For an Indepth knowledge on Selenium, click on below

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 .