Selenium Practice Test1



Selenium Practice Test1

 

Q1 What is the WebElement method used to get the Background color of the element displayed on Web page?
(1) getCssValue(“bg-color”)
(2) getCssText(“background-color”)
(3) getCss(“color)
 (4) getCssValue(“background-color”)

 

Q2 Which Java Class is used to drag and drop elements on web page?
(1) WebElement
(2) Select
(3) Actions
(4) WebDriver

 

Q3 What is the method used in the Select Java Class to get all the Options in dropdown?
(1) getAllValues()
(2) getAllVisibleValues()
(3) getOptions()
(4) getAllOptions()

 

Q4 Selenium IDE stands for?
(1) Selenium Integrated Development Environment
(2) Selenium Intialization Development Environment
(3) Selenium Interrelated Development Environment
(4) Selenium Information Development Environment

 

Q5 Which of the following functionality in WebDriver supports parellel test execution?
(1) Selenium IDE
(2) Selenium RC
(3) Selenium 1
(4) Selenium Grid

 

Q6 What is the method used to Change the Focus from an frame/iframe/window/Alert?
(1) setFocus()
(2) switchTo()
(3) redirectTo()
(4) changeFocus()

 

Q7 What is the javascript method used to scroll to particular Element?
(1) ((JavascriptExecutor) driver).executeScript(“arguments[0].scrollIntoView(true);”, element);
(2) ((JavascriptExecutor) driver).executeScript( element);
(3) ((JavascriptExecutor) driver).executeScript(“arguments.scrollIntoView(true);”, element);
(4) ((JavascriptExecutor) driver).executeScript(“arguments[0].scrollTo(true);”, element);

 

Q8 Which X-path method is used for trimming left and right spaces of a text?
(1) trim-space()
(2) normalize-space()
(3) normalize-text()
(4) trim-text()

Selenium Pratcice Test-2

 

** You can find the answers below…

 

*******************************************

 

 

 

*************************************************

Answers:

Q1. 4
Q2. 3
Q3. 3
Q4. 1
Q5. 4
Q6. 2
Q7. 1
Q8. 2

*************************************************

 

Leave a comment

Your email address will not be published. Required fields are marked *

Subscribe now

Receive weekly newsletter with educational materials, new courses, most popular posts, popular books and much more!

https://bridgejunks.com/ https://crownmakesense.com/ https://brithaniabookjudges.com/ https://hughesroyality.com/ https://rhythmholic.com/ https://bandar89.simnasfikpunhas.com/ https://www.100calshop.co.il/products/thailand/ https://myasociados.com/ https://solyser.com/ http://konfidence.cz/ https://muscadinepdx.com/ https://bandar89.parajesandinos.com.ve/ https://goremekoop.com/ https://oncoswisscenter.com/ https://www.turunclifehotel.com/bandar89/ https://www.houseofproducts.biz/ https://taimoormphotography.com/
BIJI18 BIJI18 BIJI18