1.
Select the component which is NOT part of the Selenium suite.
Correct Answer
D. Selenium Web
Explanation
The correct answer is Selenium Web. Selenium Web is not a part of the Selenium suite. The Selenium suite consists of Selenium IDE, Selenium RC, and Selenium Grid, which are all used for different purposes in web automation testing. Selenium Web is not a recognized component of the Selenium suite, and therefore it is not part of the correct answer.
2.
Select the language which is NOT supported by the Selenium RC.
Correct Answer
A. ASP
Explanation
Selenium RC (Remote Control) is a tool that allows users to write automated web application tests in any programming language. It supports multiple programming languages such as Java, C#, and PHP. However, ASP (Active Server Pages) is not supported by Selenium RC. ASP is a server-side scripting language developed by Microsoft and is primarily used for creating dynamic web pages.
3.
Select the name which is NOT the type of the locaters.
Correct Answer
C. Password
Explanation
The given options consist of different types of locaters used in web development. ID, Name, and Link Text are commonly used locaters to identify elements on a web page. However, "Password" is not a type of locater, but rather a type of input field used for entering passwords on web forms.
4.
Is Web Driver a component of the Selenium?
Correct Answer
B. Yes
Explanation
Yes, WebDriver is a component of Selenium. Selenium is a set of tools and libraries that is used for automating web browsers. WebDriver is one of the key components of Selenium and it provides a programming interface to control and interact with web browsers. It allows users to write automation scripts in various programming languages to simulate user interactions with web applications. Therefore, the correct answer is Yes.
5.
Selenium IDE stands for
Correct Answer
C. Selenium Integrated Development Environment
Explanation
Selenium IDE stands for Selenium Integrated Development Environment. This is a tool used for automating web browsers. It allows users to record and playback actions performed on a web application, making it easier to create and execute automated tests. The term "integrated" in the acronym refers to the fact that Selenium IDE can be integrated with other Selenium tools and frameworks to enhance the testing process.
6.
Select the Browser which is supported by Selenium IDE
Correct Answer
C. Mozilla Firefox
Explanation
Selenium IDE is a testing framework that allows users to automate browser actions. Among the given options, Mozilla Firefox is the browser that is supported by Selenium IDE. This means that Selenium IDE is compatible with Mozilla Firefox and can be used to automate testing on this browser.
7.
Select the operating system which is NOT supported by Selenium IDE.
Correct Answer
A. Unix
Explanation
Selenium IDE is a web browser automation tool that allows users to record and playback interactions on web pages. It supports various operating systems like Linux, Windows, and Solaris. However, Unix is not supported by Selenium IDE. This means that users cannot use Selenium IDE on Unix operating systems to automate web browser interactions.
8.
The Web driver is used
Correct Answer
A. To execute tests on the HtmlUnit browser.
Explanation
The WebDriver is used to execute tests on the HtmlUnit browser. HtmlUnit is a headless browser that allows for automated testing of web applications without the need for a graphical user interface. The WebDriver provides a programming interface to interact with the HtmlUnit browser, allowing testers to perform actions such as clicking buttons, filling forms, and verifying page content. This makes it a useful tool for automating tests and ensuring the functionality and compatibility of web applications.
9.
The Selenium IDE is used
Correct Answer
D. To test a web application against Firefox only.
Explanation
The correct answer is "To test a web application against Firefox only." This is because Selenium IDE is primarily used as a Firefox add-on for recording and playing back user interactions with the browser. While it can be used for creating customized test results, deploying tests across multiple environments using Selenium Grid, and testing with HTMLUnit, its main purpose is to test web applications specifically on the Firefox browser.
10.
The Selenium RC is used
Correct Answer
A. To run your test against different browsers (except HtmlUnit) on different operating systems.
Explanation
The correct answer is "To run your test against different browsers (except HtmlUnit) on different operating systems." Selenium RC allows testers to execute their tests on various browsers (excluding HtmlUnit) and operating systems. This feature ensures that the web application is compatible and functions correctly across different platforms.
11.
Select the command which is NOT a type of assertion in Selenium IDE.
Correct Answer
D. Wait
Explanation
The command "Wait" is not a type of assertion in Selenium IDE. Assertions are used to verify the expected behavior of a web application, whereas the "Wait" command is used to pause the test execution for a specific period of time. It does not perform any verification or assertion on the application under test.
12.
Select the method which selects the option at the given index.
Correct Answer
A. SelectByIndex()
Explanation
The correct answer is "selectByIndex()". This method is used to select an option from a dropdown list based on its index. The index starts from 0, so the first option in the list has an index of 0, the second option has an index of 1, and so on. By using this method, we can easily select the option at the given index in the dropdown list.
13.
The Selenium can
Correct Answer
C. Only test web applications
Explanation
Selenium is a widely used open-source tool for automating web browsers. It provides a framework for writing test scripts in various programming languages to automate web application testing. However, Selenium is primarily designed for testing web applications and lacks native support for automating desktop applications. Therefore, the correct answer is that Selenium can only test web applications.
14.
The Selenium
Correct Answer
D. Cannot access elements outside of the web application under test
Explanation
The correct answer is "Cannot access elements outside of the web application under test". This means that Selenium, while being a useful tool for testing web applications, has a limitation in that it cannot access elements outside of the web application being tested. This could be due to security restrictions or technical limitations, but it means that Selenium is limited to interacting only with elements within the web application under test.
15.
Can Google chrome be supported by Selenium IDE?
Correct Answer
B. No
Explanation
Google Chrome cannot be directly supported by Selenium IDE. Selenium IDE is a Firefox plugin and is primarily designed to work with Firefox browser. However, Selenium WebDriver, which is a different tool from Selenium IDE, can be used to automate Google Chrome browser.
16.
Can Unix operating system be supported by Selenium IDE?
Correct Answer
A. No
Explanation
The Unix operating system cannot be directly supported by Selenium IDE. Selenium IDE is a browser automation tool that is primarily designed to work with web browsers such as Chrome, Firefox, and Internet Explorer. Unix is a different operating system that is not directly compatible with Selenium IDE. However, Selenium WebDriver can be used to automate web browsers on Unix systems by writing code in programming languages such as Java, Python, or C#.
17.
Which command can be used to enter values onto text boxes?
Correct Answer
D. SendKeys()
Explanation
The correct answer is "sendKeys()". This command is used to enter values onto text boxes. It is a method in Selenium WebDriver that allows the user to type text into an input field or text box on a web page. By using this command, the user can simulate keyboard input and enter the desired values onto text boxes.
18.
Select the language which is supported by The Selenium Web Driver
Correct Answer
A. Perl
Explanation
The correct answer is Perl. The Selenium Web Driver supports multiple programming languages for test automation, and Perl is one of them. It provides a Perl binding that allows developers to write Selenium tests using Perl programming language.
19.
Which Selenium component supports All Operating System?
Correct Answer
C. Selenium WebDriver
Explanation
Selenium WebDriver is the correct answer because it is a component of Selenium that supports all operating systems. WebDriver allows users to automate browser actions on different platforms such as Windows, macOS, Linux, etc. It provides a programming interface to create and execute test cases across various browsers and operating systems, making it a versatile tool for cross-platform testing.
20.
Select the command in Selenium IDE used to open a page using the URL.
Correct Answer
B. Open
Explanation
The correct answer is "Open" because the "Open" command is used in Selenium IDE to open a page using the URL. This command allows the tester to navigate to a specific URL and load the corresponding webpage for further testing.
21.
In case of Selenium IDE, the Source view shows the script in
Correct Answer
D. HTML format
Explanation
The correct answer is HTML format. In Selenium IDE, the Source view displays the script in HTML format. This means that the script is represented using HTML tags and syntax, which is the standard markup language for creating web pages. The HTML format allows users to easily understand and edit the script, as it is a widely used and familiar format in web development.
22.
The Actions commands
Correct Answer
A. Are commands that directly interact with page elements.
Explanation
The correct answer is "are commands that directly interact with page elements." This is because action commands refer to the commands that perform actions on the elements of a webpage. These commands are used to interact with the various elements such as clicking buttons, filling forms, selecting dropdowns, etc. They allow users to simulate user interactions and perform automated tasks on the webpage.
23.
Select the command which is used to check the presence of a certain element.
Correct Answer
D. VerifyElementPresent
Explanation
The command "verifyElementPresent" is used to check the presence of a certain element. It is commonly used in automation testing to verify if a specific element is present on a webpage or not. This command helps in ensuring the correctness of the webpage's structure and functionality by confirming the presence of expected elements.
24.
Select the command which is used to print a string value or a variable in Selenium IDE.
Correct Answer
B. The 'echo' command
Explanation
The 'echo' command is used to print a string value or a variable in Selenium IDE. This command allows the user to display the desired text or variable value on the console or log. It is commonly used for debugging purposes to verify the values of variables during test execution.
25.
Which component of Selenium can create customized test results.
Correct Answer
A. Web driver
Explanation
The WebDriver component of Selenium allows users to create customized test results. WebDriver is a powerful tool that enables users to interact with web applications, automate testing processes, and generate detailed test reports. It provides a wide range of features and functionalities that can be customized according to the specific requirements of the testing project. With WebDriver, users can easily create personalized test results that meet their needs and provide valuable insights into the performance and functionality of the tested web application.
26.
Select the command which is used to compare the contents of a table with expected values.
Correct Answer
C. VerifyTable
Explanation
The command "verifyTable" is used to compare the contents of a table with expected values. This command is commonly used in test automation to verify that the data displayed in a table matches the expected data. By using this command, testers can ensure the accuracy and integrity of the table data in their applications.
27.
Select the command which is used to pause execution until the specified element becomes present.
Correct Answer
A. WaitForElementPresent
Explanation
The command "waitForElementPresent" is used to pause the execution of the program until the specified element becomes present on the webpage. This command is commonly used in automated testing to ensure that the program waits for the element to load before performing any further actions.
28.
Select the command that will NOT wait for a new page to load before moving onto the next command.
Correct Answer
B. SelectAndType
Explanation
The command "selectAndType" will not wait for a new page to load before moving onto the next command. This command is used to select an option from a dropdown menu and then type a value into an input field. It does not require the page to fully load before executing the next command, making it the correct answer to the question.
29.
Select the command which is used to pause execution until the page is loaded completely.
Correct Answer
A. WaitForPageToLoad
Explanation
The correct answer is "waitForPageToLoad". This command is used to pause the execution of a script until the page is fully loaded. It ensures that all elements on the page are loaded and ready to be interacted with before proceeding with the script.
30.
Select the command which is used to compare the actual page title with an expected value.
Correct Answer
A. VerifyTitle
Explanation
The command "verifyTitle" is used to compare the actual page title with an expected value. This command is commonly used in automated testing to ensure that the title of a webpage matches the expected value, allowing for verification of the correct page being displayed.
31.
Select the command which is NOT used in verifying page elements.
Correct Answer
B. VerifyElementRight
Explanation
The command "verifyElementRight" is not used in verifying page elements. This command does not exist and is not a valid command for verifying page elements. The other commands listed, such as "verifyElementPresent," "verifyElementNotPresent," and "verifyElementPositionLeft," are valid commands that can be used to verify the presence, absence, and position of page elements.
32.
Select the tab which gives feedback and other useful information when executing tests.
Correct Answer
C. Reference
Explanation
The "Reference" tab provides additional information and resources that can be helpful when executing tests. It may include documentation, guidelines, or references to external sources that can assist in understanding the test case or resolving any issues that may arise during execution. This tab is designed to provide users with the necessary information and references to ensure successful test execution.
33.
What is TestNG?
Correct Answer
A. TestNextGeneration
Explanation
TestNG stands for TestNextGeneration. It is a testing framework that is widely used in Java programming for performing unit testing, integration testing, and functional testing of software applications. TestNG provides various features such as parallel test execution, test configuration through XML files, test dependency management, and test reporting. It also supports annotations for defining test methods, test groups, and test priorities. TestNG is known for its flexibility, extensibility, and easy integration with build tools like Maven and Ant.
34.
Select the variation which finds elements based on the driver's underlying CSS selector engine in Web driver Selenium.
Correct Answer
A. By.cssSelected
Explanation
The correct answer is By.cssSelector. This variation in Web driver Selenium allows you to find elements based on the driver's underlying CSS selector engine. It is commonly used to locate elements on a web page by using CSS selectors.
35.
Select the variation which locates elements by the value of the "name" attribute in Web driver Selenium
Correct Answer
A. By.name
Explanation
The correct answer is "By.name" because this is the method in Selenium WebDriver that is used to locate elements by the value of the "name" attribute. This method allows you to find elements on a webpage by searching for the specific value assigned to the "name" attribute in the HTML code.
36.
Select the tab that shows which command Selenium IDE is currently executing.
Correct Answer
D. Info
Explanation
The "Info" tab in Selenium IDE shows the command that is currently being executed. This tab provides information about the ongoing command, such as its name, target, and value. By selecting the "Info" tab, users can easily keep track of the command being executed and monitor its progress.
37.
Which is a faster component between the SeleniumWeb driver and Selenium RC?
Correct Answer
B. Selenium Web driver
Explanation
The Selenium Web driver is a faster component compared to Selenium RC. This is because Selenium Web driver directly interacts with the browser, bypassing the need for an intermediary server like Selenium RC. This eliminates the network latency and allows for faster execution of test scripts. Additionally, Selenium Web driver supports multiple programming languages, making it more versatile and efficient in test automation.
38.
Select the variation which locates elements by the value of their "id" attribute in Web Driver Selenium.
Correct Answer
A. By.id
Explanation
The correct answer is "By.id" because in Web Driver Selenium, the "By.id" variation is used to locate elements by the value of their "id" attribute. This allows users to easily identify and interact with specific elements on a webpage by referencing their unique identifier.
39.
Select the Get command which fetches the inner text of the element that you specify in Web driver Selenium.
Correct Answer
D. GetText()
Explanation
The correct answer is "getText()". This command is used in Web driver Selenium to fetch the inner text of the specified element. It retrieves the visible text contained within the element, including any child elements, and returns it as a string. The other options provided, "getinnerText()", "get_in_Text()", and "get_inner_Text()", are not valid commands in Selenium and do not perform the same functionality as "getText()".
40.
Which Navigate command takes you forward by one page on the browser's history in Web driver Selenium.
Correct Answer
B. Navigate().forward()
Explanation
The correct answer is navigate().forward(). In WebDriver Selenium, the navigate().forward() command is used to navigate forward by one page on the browser's history. This command allows the automation script to simulate the action of clicking the browser's forward button.
41.
Which method is used when you want to verify whether a certain check box, radio button, or option in a drop-down box is selected in Web driver Selenium?
Correct Answer
C. IsSelected()
Explanation
The isSelected() method is used in Web driver Selenium to verify whether a certain check box, radio button, or option in a drop-down box is selected. This method returns a boolean value, true if the element is selected and false if it is not. It is commonly used in test automation to validate the state of checkboxes, radio buttons, and dropdowns before performing any actions on them.
42.
Which Component is used to run multiple tests simultaneously in different browsers and platforms?
Correct Answer
A. Selenium Grid
Explanation
Selenium Grid is the correct answer because it is specifically designed to run multiple tests simultaneously in different browsers and platforms. It allows for distributed test execution, where tests can be run on different machines or virtual machines, enabling parallel testing and reducing the overall test execution time. With Selenium Grid, testers can easily scale their test automation efforts and ensure compatibility across various browsers and platforms.
43.
Select the View which shows your script in HTML format.
Correct Answer
B. The Source View
Explanation
The Source View is the correct answer because it is the view that displays the script in HTML format. This view allows users to see the underlying HTML code of their script, which can be useful for debugging or making specific modifications to the code. The other views mentioned (Table View, Editor View, and Field View) do not specifically show the script in HTML format.
44.
Select the method which clears all selected entries in Web driver Selenium.
Correct Answer
D. DeselectAll()
Explanation
The correct method to clear all selected entries in Web driver Selenium is deselectAll(). This method is used to remove the selection of all options that have previously been selected in a multi-select dropdown or list box element. By calling this method, all selected entries will be deselected and cleared, allowing for a fresh selection to be made.
45.
Method which selects the option which displays the text matching the parameter passed to it
Correct Answer
B. SelectByVisibleText()
Explanation
The correct answer is "selectByVisibleText()". This method is used to select an option from a dropdown menu by matching the visible text of the option with the parameter passed to it. It is commonly used in automation testing to select a specific option based on its visible text. The other options provided, "selectVisibleText()", "select_VisibleText()", and "select_ByVisibleText()" are not valid methods and do not exist in the programming language or framework being referred to in the question.
46.
Out of the following which is NOT a wait command.
Correct Answer
C. WaitForActive
Explanation
The waitForActive command is not a wait command because it does not wait for a specific element or condition to become active or visible. Instead, it is used to check if the current window or frame is active. The other options, waitForTitle, waitForTextPresent, and waitForAlert, are all wait commands that wait for specific elements or conditions to be present or displayed on the page.
47.
Select the command which retrieves the alert message and stores it in a variable that you will specify.
Correct Answer
A. StoreAlert
Explanation
The correct answer is "storeAlert" because it is the command that retrieves the alert message and stores it in a variable that the user can specify. This command is specifically designed for this purpose and is commonly used in automated testing to capture and manipulate alert messages generated by web applications.
48.
Select the method which performs a context-click at the current mouse location.
Correct Answer
C. ContextClick()
Explanation
The correct answer is "contextClick()". This method performs a context-click at the current mouse location. It is commonly used when you want to simulate a right-click or a long-press action on an element. The other options provided in the question do not match the correct method name.