Selenium Level Knowledge Assessment

Descrição

This test will provide information an auto-evaluation based on previous Selenium courses and knowledge acquired through professional experience. The main objective will be measure the level individually using Selenium WebDriver with Java.
erick reyes
Quiz por erick reyes, atualizado more than 1 year ago
erick reyes
Criado por erick reyes mais de 7 anos atrás
119
0

Resumo de Recurso

Questão 1

Questão
The following codes will print the page title? System.out.println(driver.getTitle()); System.out.println(driver.findElement(By.tagName(“title”)).getText());
Responda
  • True
  • False

Questão 2

Questão
In WebDriver, which method closes the open browser?
Responda
  • close()
  • quit()
  • terminate()
  • shutdown()

Questão 3

Questão
In WebDriver, which of the following is a valid select statement that selects a value from a drop down element?
Responda
  • selectByIndex()
  • selectByValue()
  • selectByVisibleText()
  • All of the above
  • None of the above

Questão 4

Questão
Consider the following code snippet WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.presenceOfElementLocated(by)); This is an example of...
Responda
  • Explicit Wait
  • Implicit Wait
  • Fluent Wait

Questão 5

Questão
Which WebDriver method is used to change focus to an alert, a frame or a browser window?
Responda
  • switchTo()
  • changeTo()
  • setFocus()
  • changeFocus()

Questão 6

Questão
In WebDriver, which command takes you forward by one page on the browser’s history?
Responda
  • navigate().forward()
  • navigate.forward()
  • Navigate.forward()
  • navigate_forward()

Questão 7

Questão
In WebDriver, which command can be used to enter values onto text boxes? Select the best answer
Responda
  • sendKeys("text")
  • selenium.type()
  • driver.type("text")
  • sendKeys()

Questão 8

Questão
In WebDriver, which of the following commands retrieves the text of a html element?
Responda
  • getText()
  • selectText()
  • getElementText()
  • getText(WebElement)

Questão 9

Questão
In WebDriver, which method navigates to an URL?
Responda
  • get("url")
  • goToUrl("url")
  • navigate.to("url")
  • getUrl("url")

Questão 10

Questão
Using USAA framework which class extends to test classes?
Responda
  • WebBaseTest
  • WebBasePage
  • BasePage
  • USAABaseTest

Questão 11

Questão
Using USAA framework what class extends to page classes?
Responda
  • WebBasePage
  • WebBaseTest
  • USAABasePage
  • BasePage

Questão 12

Questão
which of the following annotations are used by JUnit ?
Responda
  • @After, @Before, @AfterClass, @Test, @BeforeClass
  • @AfterTest, @AfterMethod, @BeforeMethod, @Test, @BeforeTest
  • @Test, @Before, @After
  • None of the above
  • All of the above

Questão 13

Questão
what element will be selected using the next Xpath expression? "//a[name='element1']/div/span/p"
Responda
  • a paragraph
  • a link
  • an image
  • none of above

Questão 14

Questão
According to POM, what does a page class contain?
Responda
  • Actions
  • Services
  • Page Elements
  • All of the above
  • None of the above

Questão 15

Questão
In log4j, which of the following methods is valid to generate a log?
Responda
  • info()
  • fatal()
  • warn()
  • All of the above
  • None of the above

Questão 16

Questão
Selenium can...
Responda
  • Access controls within the desktop
  • Only test web applications
  • Both web and desktop applications

Questão 17

Questão
What element will be selected with the following statement? driver.findElement(By.cssSelector("#name")); <div> <span id=”name”>Name 1</span> <span class="name">Name 2</span> </div>
Responda
  • CSS selector syntax is incorrect
  • Output is "Name 2"
  • Output is "Name 1"
  • NoSuchElementException

Questão 18

Questão
How to create an instance of WebDriver in Java?
Responda
  • WebDriver driver = FirefoxDriver();
  • WebDriver = new FirefoxDriver();
  • WebDriver driver = CreateObject FirefoxDriver();
  • WebDriver driver = new FirefoxDriver();

Questão 19

Questão
in JUnit, @Before annotation will execute the method for every @Test methods in the test class?
Responda
  • True
  • False

Questão 20

Questão
Assertions can be defined in Page classes?
Responda
  • True
  • False

Questão 21

Questão
Select an option which is NOT a type of locators.
Responda
  • id
  • className
  • xpath
  • cssSelector
  • style

Questão 22

Questão
Which of the following options is declaring an implicit wait?
Responda
  • webDriver.manage().timeouts.implicitlyWait(10, TimeUnit.SECONDS)
  • WebDriverWait wait = new ImplicitWaitTime(); wait.implicitWait(10, TimeUnit.SECONDS);
  • webDriver.implicitWaitTime().setExplicitTime(driver, 10);
  • ImpicitWait = webDriver.timeOuts().setExplicitWait(10, TimeUnit.SECONDS )

Questão 23

Questão
Extending from WebBasePage to page class, you need to implement... (select all the applicable)
Responda
  • a constructor
  • waitForPageLoad method
  • isElementPresent method
  • Web Driver
  • DataHandler class
  • log4j to Logging the actions

Questão 24

Questão
What element can be manipulate using "Select" class?
Responda
  • Dropdown lists
  • Check boxes
  • Radio button
  • Buttons
  • Text box areas

Questão 25

Questão
Which element will be selected with the following instructions? Select option = new Select(driver.findElementBy.name("list")); option.deselectByVisibleText("Saab"); <select name="list"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> </select>
Responda
  • Volvo
  • Saab
  • Mercedes
  • All of the above
  • None of the above

Semelhante

Simulado Fuvest
Alessandra S.
Sistema Respiratório
GoConqr suporte .
Assistência de Enfermagem
Caíque Jordan
Níveis de organização dos seres vivos
GoConqr suporte .
Reinos - Características Gerais/Biologia
GoConqr suporte .
Revisão de Sociologia 1a. série do Ensino Médio
e-pn-2007@hotmail.co
Aprendendo Inteligência
Clarice Plack
Psicologia Social Contemporânea
ANDERSON NUNES
Sistemas do Corpo Humano
GoConqr suporte .
Como criar um Mapa Mental
Alex Farias