0% found this document useful (0 votes)
374 views

Selenium WebDriver

Selenium is an open-source tool used for automating web application testing. It supports test automation of web applications across different browsers and operating systems. Selenium provides various components like Selenium IDE (for recording and playing back tests in Firefox), Selenium WebDriver (for cross-browser testing), and Selenium Grid (for running tests in parallel on multiple remote machines). Common testing frameworks that can be used with Selenium include TestNG, JUnit, and others. Page object model is a design pattern used with Selenium to organize tests and reduce code duplication.

Uploaded by

Revanth Talla
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
374 views

Selenium WebDriver

Selenium is an open-source tool used for automating web application testing. It supports test automation of web applications across different browsers and operating systems. Selenium provides various components like Selenium IDE (for recording and playing back tests in Firefox), Selenium WebDriver (for cross-browser testing), and Selenium Grid (for running tests in parallel on multiple remote machines). Common testing frameworks that can be used with Selenium include TestNG, JUnit, and others. Page object model is a design pattern used with Selenium to organize tests and reduce code duplication.

Uploaded by

Revanth Talla
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

1. Which of the following language is used in selenium as a test language ?

PHP

Java

All of these --correct

javascript

2. Selenium 3.0 introduced in which year ?


2004

2008

2006

2016 -- Correct

3. What kind of application is Selenium IDE ?


Firefox add-on -- correct

None of these

m
er as
Web application

co
eH w
Desktop application

o.
4. Out the following which can test only the web application ?
rs e
ALM
ou urc
QTP

Selenium -- Correct
o
aC s

All of these
v i y re

5. Selenium is Open-Source
True -- correct

False
ed d
ar stu

6. Selenium IDE supports in ?


Internet Explorer

Chrome
sh is

All the options


Th

Firefox -- correct

7. What does the term JSON expands on ?


None of these

Java object notation

Java object naming

Javascript object notation -- correct

8. On what OS does Selenium works ?


Linux

Mac

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
Windows

All the options -- Correct

9. Which component of selenium support web broswers across OS ?


Selenium Generator

Selenium WebDriver -- correct

All the options

Selenium IDE

10. Which Selenium components helps with Perfomance testing ?


Selenium RC

Selenium Grid - correct

Selenium IDE

Selenium WebDriver

m
11. Out the following which can test only the web application ?

er as
All of these

co
eH w
QTP

o.
Selenium -- correct rs e
ou urc
ALM

12. Selenium IDE supports in ?


All the options
o
aC s

Chrome
v i y re

Firefox -- correct

Internet Explorer
ed d

13. Insteaded of running a full build package we can run with help of
ar stu

maven run

mvn run

mvn clean install --correct


sh is

maven clean install


Th

14. Maven POM refers - Page Object Model


False --correct

True

15. Can we Integrate TestNG and Jenkins with Maven ?

True --correct

False

16. Apache POI help to read Excel File ?

True --correct

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
False

17. Which of the following command is use to check Maven version ?


mvn version

Maven - -version

mvn --version -- correct

maven -version

18. Maven POM refers - Project Object Model

True --correct

False

19. JUnit and Nunit does has lots more functionality than TestNG ?
False --correct

True

m
20. @Test(description = “test method”) It is a description for a method ?

er as
True --correct

co
eH w
False

o.
21.TestNG works with Annotations and annotation can be represented with symbol
rs e
#
ou urc
@ --correct

$
o
aC s

*
v i y re

22.In TestNG “NG” Stands for Next Generation


True --correct

False
ed d
ar stu

23. What are the Annotations available In Testng?


@BeforeScript

@Script
sh is

@AfterSCript
Th

@Test -- correct

24. What are the utility of the action commands?


All of the options

are command that verify if a certain condition is met

are commands that allow you to store values to a variable

are commands that directly interact with page elements. --correct

25. Implicit wait time is applied to all elements in your code while Explicit
waits are applied only to a single element for a specified amount of time.

True -- true

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
False

26. Which of the following method performs a context-click at the mouse


location?

Click_Context

context.Click()

context_Click()

contextClick() --correct

27. What is the unit of movements String argument in Drag and Drop Selenium
action?

cm

Percentage

inches

m
er as
pixel -- correct

co
eH w
28. In webdriver ” selectAllOptions() “ is a valid command.

o.
False --correct rs e
ou urc
True

29. Which command takes you forward by one page on the browser’s history?
o

navigate.forward
aC s
v i y re

Navigate.forward

Navigate().forward()-- correct

navigate.forward()
ed d
ar stu

Navigate.forward()

30. Which of the following clears all selected entries in Selenium Webdriver?

dselectAll()
sh is

deselectAll() -- correct
Th

dselect.All()

deselect.All()

31. WebDriverWait wait = new WebDriverWait(driver, 30);

wait.until(ExpectedConditions.presenceOfElementLocated(by));

The above wait condition is considered an:

None of these

Implicit wait

Explicit wait -- correct

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
32. It is a valid Selenium Command “driver.navigate().refresh ();”?

True --correct

False

33. Which is not a WebElement Method?

getTagName()

getText()

sendKeys()

size()-- correct

34. What are the types of Page Object Model

Page Factory Method

Both the options -- correct

m
er as
None of these

co
eH w
Normal POM Approach

o.
35. Data Driven Testing methodology in automated testing to test only a single
rs e
set of Test Data.
ou urc
False --correct

True
o
aC s

36. Do screenshot method created with help of driver object ?


v i y re

True --correct

False
ed d

37. Can we use Headless Browser in CrossBrowser Testing


ar stu

False

True --correct
sh is

38. Page Object Model mainly consists of


Th

Pages folder

utility folder

All the options --correct

Tests folder

39. In webdriver, what is the return value of sendKeys function

string -- correct

bool

None of these

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
char

40. In CrossBrowser to run prallel Tesing we need triger “.java” file

True

False --correct

41. In POM both “@FindBy” & “how” annotations can be used in same class file

False

True -- correct

42. These annotations are part of page factory method (“@FindBy” & “how”)

False

True --correct

43. Data Driven Testing requires Apache Poi Dependency ?

m
True -- Correct

er as
co
False

eH w
-----------------Final Assesement--------------
44. What are the navigation methods listed below.

o.
back()
rs e
ou urc
to()

all the above --correct


o
aC s

forward()
v i y re

45. Maven POM refers - Page Object Model

True
ed d

False --correct
ar stu

46. Which of the following options are valid ways to access an element by id?

driver.findElement(By.xpath("//*[@id='plans']")) -- correct
sh is

None of these
Th

driver.findElement(By.xpath("//*[@id=”plans”]"))

driver.findElement(By.xpath("//*[id='plans']"))

47. Which tool is appropriate to set up a Selenium 2.0 Java project

Signed dlls

Depends upon the project

Maven --correct

pip

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
48. Which of the following programming language is not supported by selenium
webdriver ?

JavaScript

None of these

ASP.NET -- correct

Python

49. Which of the following ends with same as Xpath ends with *****************

$=

^=

&=

*= --correct*** Wrong actually

m
50. Which of the following programming language is supported by selenium

er as
webdriver ?

co
eH w
ASP

o.
SQL rs e
ou urc
Cobol

Perl -- Correct
o

51. What is the WebElement method used to get the BackGroud Color of an Element
aC s

displayed in the WebPage.


v i y re

getCss(“color”)

getCssText(“background-color”)
ed d

getCssValue(“background-color”) -- Correct
ar stu

getCssValue(“bg-color”)

52. Taking Screenshot is possiable with HtmlUnit Driver ?


sh is

True
Th

False -- correct

53. What is the correct syntax to instantiate a FireFox session

WebDriver driver = new FirefoxDriver() -- correct

WebDriver driver = new geckoDriver()

WebDriver driver = new GeckoDriver()

WebDriver driver = new firefoxDriver()

54. What is the main transport mechanism used by WebDriver

HTTP -- Correct

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
JSON

AJAX

Websocket

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
v i y re
ed d
ar stu
sh is
Th

This study source was downloaded by 100000806952388 from CourseHero.com on 08-18-2021 05:30:41 GMT -05:00

https://www.coursehero.com/file/66019452/Selenium-WebDrivertxt/
Powered by TCPDF (www.tcpdf.org)

You might also like