|
INTERVIEW QUESTIONS
AUTOMATED TESTING TOOLS
SELENIUM
DETAILS
Question: Explain the types of Selenium commands.
Answer: Selenium commands comes in three types:
Actions: These commands control the state of the application. They handle actions like “click this link” and “select that option”. If an Action fails, or has an error, the execution of the current test is stopped. Many actions are called with "AndWait" suffix e.g: "clickAndWait", "selectAndWait", "typeAndWait". This suffix will tell Selenium to wait for a new page to load when the action will cause the browser to make a call to the server.
Accessors examine the state of the application and store the results in variables, e.g. "storeTitle". They are also used to automatically generate Assertions.
Assertions are like Accessors, but they verify that the state of the application conforms to what is expected.
3 modes of assertions: "assert", "verify", and "waitFor"
|
|
|
Category |
Selenium Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9242 users |
Added on |
5/9/2016 |
Views |
68388 |
Rate it! |
|
|
Question:
Explain the types of Selenium commands.
Answer:
Selenium commands comes in three types:
Actions: These commands control the state of the application. They handle actions like “click this link” and “select that option”. If an Action fails, or has an error, the execution of the current test is stopped. Many actions are called with "AndWait" suffix e.g: "clickAndWait", "selectAndWait", "typeAndWait". This suffix will tell Selenium to wait for a new page to load when the action will cause the browser to make a call to the server.
Accessors examine the state of the application and store the results in variables, e.g. "storeTitle". They are also used to automatically generate Assertions.
Assertions are like Accessors, but they verify that the state of the application conforms to what is expected.
3 modes of assertions: "assert", "verify", and "waitFor" Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Selenium Interview Questions & Answers - Exam Mode /
Learning Mode
|