Disney TCoE - Selenium Automation Training Assessment

A vibrant and engaging illustration of a computer screen displaying Selenium automation scripts, surrounded by elements representing web applications and testing tools, with a light background to convey a tech-savvy environment.

Disney Selenium Automation Assessment

Test your knowledge on Selenium and its various aspects through this engaging quiz designed for aspiring automation testers!

The quiz includes diverse questions covering topics such as Selenium IDE, WebDriver, Cucumber, XPath, and more.

  • 37 questions to challenge your understanding
  • Multiple choice, text, and checkbox formats
  • Ideal for both beginners and experienced testers
37 Questions9 MinutesCreated by TestingGuru101
Which language is used in Selenium IDE
Java
JUnit
Python
Selenese
We can install Selenium IDE in which of the following browsers?
Chrome
Firefox
Internet Explorer
Safari
Selenium IDE can be launched as a standalone testing tool. True or False
True
False
What are the different type of assertion commands in Selenium IDE?
Verify
Assert
WaitFor
IsPresent
IsVisible
We can directly use the saved test case from Selenium IDE in Selenium Webdriver. True or False
True
False
Which tool is used to inspect elements in Firefox?
Firepath
Firebug
Developer Options
All of the above
What are the different locators in Selenium?
ID
Name
Xpath
Tagname
Visibletext
Linktext
Driver.quit() is used to
Close any window opened by the driver
Close current window opened by the driver
Which is the correct xpath to locate the element textbox in front of label "Password:" on page - http://newtours.demoaut.com/
//form[@name='home']/table/tbody/tr[4]/td/table/tbody/tr[td/font[contains(text(), 'Pass')]]/td[2]/input
//form[@name='home']/table/tbody/tr[4]/td/table/tbody/tr[td/font[text() = 'Password:')]]/td[2]/input
None of the above
Both of the above
Which is the correct xpath to find the total number of links on the page - http://newtours.demoaut.com/
./a
//a
//*/a
All of the above
Write the xpath to find the next 2 links to "REGISTER" on the page - http://newtours.demoaut.com/ (HINT: Use following-sibling in xpath)
In Cucumber, we use hooks @Before and @After.
I. @Before is executed before feature is executed; @After is executed after feature is executed,
ii. @Before is executed before first scenario is executed; @After is executed after first scenario is executed,
iii. @Before is executed before every scenario is executed; @After is executed after every scenario is executed,
iv. @Before and @After needs to be invoked explicitly like @Given, @When, @Then
In Cucumber, we use hooks @Before and @After.
I. @Before is executed before feature is executed; @After is executed after feature is executed,
ii. @Before is executed before first scenario is executed; @After is executed after first scenario is executed,
iii. @Before is executed before every scenario is executed; @After is executed after every scenario is executed,
iv. @Before and @After needs to be invoked explicitly like @Given, @When, @Then
Which is correct about the hooks:
I
Iii
Ii and iii
Iv
All statements are correct
In a webpage, there is a Webtable inside which there are multiple links. Which of the following is the correct option to get count of all the links in webtable?
WebElement parent = driver.findelement(By.xpath("//table[@id='table1']")); parent.findelements(By.xpath("/a")).size();
Driver.findelement(By.xpath("//table[@id='table1']")).findelements(By.xpath(".//a")).size();
WebElement parent = driver.findelement(By.xpath("//table[@id='table1']")); WebElement child = parent.findelement(By.xpath("/a")); child.size();
All of the above
In Selenium webdriver, click() and submit() performs the same function?
True
False
How can we double click on a WebElement oControl? Select the correct method
OControl.doubleClick();
New Actions(oControl).doubleClick();
New Actions(driver).doubleClick(oControl);
All of the above
In Cucumber when we have multiple features consisting of multiple scenarios, we can implement Background instead using @Before hook?
Yes, as both are executed before scenarios
No, the implementation is different in Background for different features
@Before can be used across the feature files whereas Background cannot be used for the same
@Before contains a single method similar to Background
Which one is correct regarding the symbols used in a xpath?
@ - attribute, [] - filter pattern
* - wildcard, [] - index
All of the above
None of the above
How can we select value from a dropdown element oDropDown?
ODropDown.selectByValue("Test");
New Select(driver).selectByValue("Test");
New Select(oDropDown).selectByValue("Test");
Driver.findElement(oDropDown).selectByValue("Test");
Write the Selenium command to print the text displayed for all the links on page - http://newtours.demoaut.com/ and the URL it is directing to?
What is the difference between @Before annotation in Cucumber and JUnit?
Both are same
@Before in Cucumber runs before every scenario; @Before in JUnit runs before every test method
@Before in Cucumber runs before every test method; @Before in JUnit runs before every scenario
Both runs before any test method in Cucumber
What is the extension of Github repository?
.rep
.git
.java
.prj
Feature: Guest user checks out a product
Scenario Outline: User initiates an order
Given User launched Disney Store application in Chrome browser
And User is not logged in to application
When User searches for a product
And User selects variant values in Product page
And User adds the product to bag
Then Verify the product is added to bag
And User checks out product from bag
Scenario: User applies gift options
Given Order summary is displayed
When User adds gift options for the product
Then Verify gift option is added
And Order summary is updated
And User begins checkout from My Bag page
Feature: Guest user checks out a product
Scenario Outline: User initiates an order
Given User launched Disney Store application in Chrome browser
And User is not logged in to application
When User searches for a product
And User selects variant values in Product page
And User adds the product to bag
Then Verify the product is added to bag
And User checks out product from bag
Scenario: User applies gift options
Given Order summary is displayed
When User adds gift options for the product
Then Verify gift option is added
And Order summary is updated
And User begins checkout from My Bag page
Will this feature file run successfully?
Please Specify:
Feature: Guest user checks out a product
 
Scenario Outline: User initiates an order
Given User launched Disney Store application in <browser>
And User is not logged in to application
When User searches for a product
And User selects variant values in Product page
And User adds the product to bag
Then Verify the product is added to bag
And User checks out product from bag
 
Examples:
| browser |
| firefox |
| chrome |
| ie |
 
Scenario: User applies gift options
Given Order summary is displayed
When User adds gift options for the product
Then Verify gift option is added
And Order summary is updated
And User begins checkout from My Bag page
 
Scenario: User checks out the product
Given User checks out as a Guest
And User enters shipping address details
And User enters VISA card details
When User submits the order
Then Verify the receipt details
And User has concluded the operation
Feature: Guest user checks out a product
 
Scenario Outline: User initiates an order
Given User launched Disney Store application in <browser>
And User is not logged in to application
When User searches for a product
And User selects variant values in Product page
And User adds the product to bag
Then Verify the product is added to bag
And User checks out product from bag
 
Examples:
| browser |
| firefox |
| chrome |
| ie |
 
Scenario: User applies gift options
Given Order summary is displayed
When User adds gift options for the product
Then Verify gift option is added
And Order summary is updated
And User begins checkout from My Bag page
 
Scenario: User checks out the product
Given User checks out as a Guest
And User enters shipping address details
And User enters VISA card details
When User submits the order
Then Verify the receipt details
And User has concluded the operation
For the above feature file:
All scenarios will run successfully 3 times in different browsers
Only one scenario will be executed
Only the first scenario will be executed 3 times in different browsers
Java compilation will throw error
Second and third scenario will execute only once in the last opened browser
Jenkins have it's own repository to store the code copied from Github.
True
False
While creating a job in Jenkins which type of project we need to select?
Which of the following statements are correct?
New Maven project needs to be created
Convert a Java project to Maven by adding pom.xml
Cannot convert a Java project to Maven project
Maven project automatically downloads jar files using default pom.xml
Pom.xml needs to have the dependencies required for execution
{"name":"Disney TCoE - Selenium Automation Training Assessment", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge on Selenium and its various aspects through this engaging quiz designed for aspiring automation testers!The quiz includes diverse questions covering topics such as Selenium IDE, WebDriver, Cucumber, XPath, and more.37 questions to challenge your understandingMultiple choice, text, and checkbox formatsIdeal for both beginners and experienced testers","img":"https:/images/course5.png"}
Powered by: Quiz Maker