logo logo

Selenium for Beginners – Test your Love for Selenium!

Selenium Quiz

Welcome to your Selenium for Beginners Quiz!

1. 

My Friend John explained to me all about the getText action... I'm trying to remember what it returns...

2. 

My manager threw this on my table and wanted me to reach the text ATID College. I know I have a few options for that so I will mark it










ATID College

3. 

While browsing the Internet how to bake an apple pie, I stubmled upon this code. I might as well try to figure it out...

 driver.get("http://google.com");
driver.navigate().to("http://facebook.com");

4. 

I'm in the mood for My Header, so I'll have to work my magic and extract it from the following command, by:

<h1 id="header">My Header

5. 

Before I open a silly bug for Mark, I'll want to go to the new tab of his new feature. so I better use the

6. 

I want to execute the following command but I'm scared! Help me understand what it does:

System.out.println(driver.getTitle());

7. 

Wow, I learned xpath! Now I'm trying to figure out if the following expression is legal:

//*[id='user']/span

8. 

Oh no, our developer Alex just added in my page a few elements with id=test... I wonder what will the following command return?

driver.findElement(By.id("test"));

9. 

Cookies? The ones you eat with milk? Can Selenium even handle Cookies?

10. 

What a funny command: Webdriver...
Should we stick to the 'driver' definition or that's not important and can be changed?

WebDriver driver = new ChromeDriver();

Click SUBMIT to find out how you scored! Enter your E-mail address to receive the correct answers via mail.

***Your E-mail address will remain confidential. We will NOT spam, spy and we will NEVER share your information with any third parties.

Email
FacebookLinkedInTwitterEmail

Comments

0 3 comments

Leave a Reply