Home
10th Grade
11th And 12th
11th Grade
12th Grade
3rd Grade
4th Grade
5th Grade
6th Grade
7th Grade
8th Grade
9th Grade
Advance Accountancy
Auditing
Computer Aptitude
Direct And Indirect Taxation
Exams
General Hindi
Indian Finance System
Information Technology And Application In Business
Macro Economics
Town Planning
Aerospace And Aeronautical
Analytical Instrumentation
Banking Awareness
Banking Exam
Biochemistry
Bioinformatics
Biology
Biotechnology
Business Statistics
C Program
C Programming
C++ Programming
Career Aptitude Test
Cell Biology
Central Superior Service (css)
Chemical Engineering
Chemistry
Civil Engineering
Commerce
Computer
Computer Fundamentals
Computer Science
Cost Accounting
Css
Database
Drug And Pharmaceutical Biotechnology
Ecat And Mcat Entry Test
Economics
Electrical Engineering
Electrical Engineering Questions
Electrical Measurement And Instrumentation
Engineering
English
English Literature
Environment Management
Environmental Biotechnology
Enzyme Technology
Financial Management And Financial Markets
Gate
General Knowledge
Graduate Assessment Test (gat)
Health And Physical
Heat Transfer
Html
Human Anatomy And Physiology
Human And Cultural Diversity
Human Resource Management
Ias
Indian Economy
Indian Economy
Indian General Awareness
Indian Geography
Indian Geography
Indian History
Indian History
Indian Polity
Instrumentation Transducers
International Relations
Java Program
Javascript
Judiciary And Law
Life Sciences
Management
Marketing And Marketing Management
Mass Transfer
Mechanical Engineering
Mechanics Of Materials
Medical Subjects
Microbiology
Networking
Php
Placement Tests
Professional Communication
Quantitative Aptitude
Reasoning Aptitude
Renewable Energy
Science
Sociology
Sql
Surveying
Total Quality Management
Uidai Aadhaar Supervisor Certification
Virology
Notificatin
Exam
Blog
Contact Us
Selenium(Computer Science ) Questions and Answers
Home
Topic
Computer Science
Selenium
Question 1.
Which is the incorrect statement for X-path?
Xpath can work with text, CSS cannot work
Xpath has more combination and can search by index CSS cannot search by index, but css is working faster than Xpath
with Xpath, we can search elements backward or forward... while css works only in forward direction •
with Xpath we cannot work with text, CSS we can
Explanation:-
Answer: Option D. ->
with Xpath we cannot work with text, CSS we can
Question 2.
How do you maximize a web page?
driver.manage().window().maximize();
driver.manage().window().enlarge();
driver.manage().maximize();
driver.manage().enlarge
Explanation:-
Answer: Option A. ->
driver.manage().window().maximize();
Question 3.
Which method to use to get an element from webpage?
findElements()
searchElement()
getElement()
findElement()
Explanation:-
Answer: Option D. ->
findElement()
Question 4.
Which is the correct syntax of DOM?
Text
Text
$tag attr1=value1, attr2=value2$Text$/tag$
Text
Explanation:-
Answer: Option D. ->
Text
Question 5.
Which one is NOT one of the Selenium's suites?
Selenium IDE
Selenium RC
Selenium Grid
Selenium WebDriverManager
Explanation:-
Answer: Option D. ->
Selenium WebDriverManager
Question 6.
Which is the correct syntax to find all links in the page?
List list = driver.findElements(By.tagName('a'));
WebElement list = driver.findElements(By.tagName(“a”));
Explanation:-
Answer: Option A. ->
List list = driver.findElements(By.tagName('a'));
Question 7.
Difference between quit() and close()?
quit() method quits the active window only, close() method closes the active window
quit() method quits the active window only, close() method closes all opened windows.
quit() method quits all opened windows, close() method closes the active window only.
quit() method closes all opened windows, close() method opens a browser session
Explanation:-
Answer: Option C. ->
quit() method quits all opened windows, close() method closes the active window only.
Question 8.
Which method to use to close a webpage?Hint :
quit()
close()
disconnect()
Both A & B
Explanation:-
Answer: Option D. ->
Both A & B
Question 9.
Which of the following is a syntax for an x path to find an element?
tagname[@attribute=`value`]
atribute[@tagname=`value`]
input[tagname='value']
a[value='attribute']
Explanation:-
Answer: Option A. ->
tagname[@attribute=`value`]
Question 10.
In test automation, framework is the blueprint of test automation
True
False
Explanation:-
Answer: Option A. ->
True
1
2
3
Next →
One click Login
Login With Google
Old way of Login
Login With Email