What are the types of Selenium commands?

0 votes
What are the types of Selenium Commands?
May 13 in Selenium by Shekhar
8 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hi Shekhar, Selenium commands are basically classified in three categories:

  1. Actions: Actions are the selenium commands that generally manipulate the state of the application. Execution of Actions generate events like click this link, select that option, type this box, etc. If an Action fails, or has a bug, the execution of current test is stopped. Some of the most commonly used Actions commands include: open (url), type (locator,value), click (locator), focus (locator), highlight (locator) etc.

  2. Accessors: Accessors are the selenium commands that examine the state of the application and store the results in variables. They are also used to automatically generate Assertions. Some of the most commonly used Accessors commands include: storeTitle (variableName), storeValue (variableName), storeLocation (variableName), storeTable (variableName), storeAllButtons (variableName) etc.

  3. Assertions: Assertions are the commands that enable testers to verify the state of the application. Assertions are generally used in three modes assert, verify and waitfor. Some of the most commonly used Assertions commands are: verifySelected(selectLocator, optionLocator), verifyAlert(pattern), verifyAllLinks(pattern), waitForErrorOnNext(message), waitForAlert(pattern) etc.

answered May 13 by Anvi
• 5,880 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

What are locators in Selenium and what are the different types of it?

Hi Divya, in Selenium Locators define an ...READ MORE

answered May 7 in Selenium by Abha
• 5,840 points
19 views
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Hi Piyush, XPath is defined as XML path. It is ...READ MORE

answered May 8 in Selenium by Pratibha
• 2,520 points
19 views
0 votes
1 answer

What are some of the browser commands used in Selenium Webdriver?

Hi Nakul, some of the most frequently ...READ MORE

answered May 14 in Selenium by Abha
• 5,840 points
5 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,030 points
60 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
432 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
49 views
0 votes
1 answer

What are the main functions of Xpath locator in Selenium?

Hi Danish, for handling complex and dynamic ...READ MORE

answered May 9 in Selenium by Anvi
• 5,880 points
12 views
0 votes
1 answer

What are the major components of Selenium IDE?

Hi Janvi, Selenium IDE is divided into different ...READ MORE

answered May 13 in Selenium by Anvi
• 5,880 points
8 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.