Top 50 Automation Testing Interview Questions and Answers
Updated 25 Nov 2024
Q1. What is the difference between automation testing and manual testing?
Automation testing is the use of tools and scripts to execute test cases, while manual testing is performed manually by human testers.
Automation testing involves the use of automation tools and scripts to execute test cases.
Manual testing is performed manually by human testers without the use of automation tools.
Automation testing is faster and more efficient for repetitive tasks.
Manual testing allows for exploratory testing and human intuition.
Automation testing is suitable ...read more
Q2. Perform action using Selenium on a website.
Performing actions using Selenium on a website
Identify the element using locators such as ID, class, name, etc.
Perform the desired action using Selenium commands like click(), sendKeys(), etc.
Handle any pop-ups or alerts that may appear during the action
Use explicit or implicit waits to ensure the element is loaded before performing the action
Q3. Describe your automation Framework?
My automation framework is a hybrid framework that combines data-driven and keyword-driven approaches.
It uses Selenium WebDriver for web automation and Appium for mobile automation.
It has a modular structure with reusable components.
It supports parallel execution and generates detailed reports.
It integrates with Jenkins for continuous integration and deployment.
It uses TestNG for test management and assertion.
It has a robust exception handling mechanism.
It supports cross-brow...read more
Q4. How do you identify if the automation failed is Apex error
Check debug logs for Apex error messages
Review debug logs to identify any Apex error messages
Check the error message for the line number and class name
Use the Developer Console to view the debug logs
Consider implementing error handling and notifications for Apex errors
Q5. How to upload file in selenium?
To upload a file in Selenium, you can use the sendKeys() method on the file input element.
Locate the file input element on the webpage using appropriate locator strategies
Use the sendKeys() method to send the file path to the file input element
Ensure the file path is correct and accessible by the browser
Q6. How many locators types are there
There are multiple locator types used in software testing.
There are 8 types of locators: ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, and XPath.
Locators are used to identify web elements on a page.
The choice of locator type depends on the specific element being located and the structure of the HTML code.
Using unique locators can improve the stability and maintainability of automated tests.
Q7. How do you configure Jenkins to run your automation suite?
Configure Jenkins with necessary plugins and create a Jenkins job to run the automation suite.
Install necessary plugins like Selenium, TestNG, etc.
Create a Jenkins job and configure it to run the automation suite
Specify the location of the automation suite in the Jenkins job configuration
Set up the build triggers and post-build actions as required
Q8. Elaborate the Benefits of automation testing
Automation testing offers faster feedback, increased test coverage, and improved accuracy.
Faster feedback on code changes
Increased test coverage with the ability to run more tests in less time
Improved accuracy and consistency of test results
Reduced testing costs and time
Ability to test in different environments and configurations
Identification of defects earlier in the development cycle
Improved team productivity and collaboration
Ability to perform regression testing easily
Exa...read more
Automation Testing Jobs
Q9. How to achieve synchronisation in selenium?
Synchronization in Selenium ensures that the automation script waits for the web page to load completely before performing actions.
Use implicit wait to wait for a certain amount of time before throwing an exception
Use explicit wait to wait for a specific condition to be met before proceeding
Use fluent wait to wait for a specific condition with a polling frequency
Q10. What tools used at automation testing
Some tools used in automation testing include Selenium, JUnit, TestNG, Cucumber, and Jenkins.
Selenium: Used for automating web applications testing
JUnit: Framework for writing and running repeatable tests
TestNG: Testing framework inspired by JUnit and NUnit
Cucumber: Tool for running automated acceptance tests written in a behavior-driven development (BDD) style
Jenkins: Automation server used to automate various tasks like building, testing, and delivering software
Cross-browser testing is the process of testing a website or web application across different web browsers to ensure consistent functionality and appearance.
Ensures compatibility with various browsers such as Chrome, Firefox, Safari, and Internet Explorer
Identifies and fixes any issues related to browser-specific behaviors
Helps in delivering a seamless user experience across different platforms
Uses tools like Selenium, BrowserStack, and CrossBrowserTesting for automated testi...read more
To switch out of an iframe in Selenium, you can use the switchTo().defaultContent() method.
Use driver.switchTo().defaultContent() to switch out of the iframe.
If the iframe is nested within multiple iframes, use driver.switchTo().parentFrame() to navigate up the iframe hierarchy.
You can also switch to a specific iframe by using driver.switchTo().frame() with the iframe element or index.
Selenium supports various navigation commands to interact with web pages.
Some navigation commands supported by Selenium include get(), navigate().to(), navigate().back(), navigate().forward(), and navigate().refresh().
The get() command is used to open a webpage by providing the URL.
The navigate().to() command is used to navigate to a specific URL.
The navigate().back() command is used to navigate back to the previous page in the browser history.
The navigate().forward() command...read more
Q14. How to send keys using JSE
Sending keys using JSE in QA testing
Use the sendKeys() method to send keyboard input to a web element
Locate the element using findElement() method before sending keys
Example: driver.findElement(By.id("username")).sendKeys("example@gmail.com")
Q15. What is regression testing, automation testing
Regression testing is retesting software to ensure new changes haven't affected existing functionality. Automation testing is using tools to execute test cases.
Regression testing ensures that new code changes haven't affected existing functionality
Automation testing involves using tools to execute test cases automatically
Regression testing is often performed after code changes or updates
Automation testing helps in saving time and effort by automating repetitive test cases
Exam...read more
Q16. How to start DB using Selenium
To start DB using Selenium, we need to establish a connection to the database and execute SQL queries.
Import the necessary libraries for database connectivity and Selenium
Create a connection to the database using the appropriate driver
Execute SQL queries to perform desired actions on the database
Close the database connection after use
Q17. How to write xpath in selenium?
XPath in Selenium is used to locate elements on a web page using XML path expression.
Use // to select nodes in the document from the current node that match the selection no matter where they are
Use / to select nodes in the document from the root node that match the selection
Use @ to select attributes
Use text() to select the text of the element
Examples: //input[@id='username'] to locate an input element with id 'username'
Q18. What is the framework used in your company for UI and API automation
Our company uses Selenium for UI automation and RestAssured for API automation.
Selenium is used for UI automation
RestAssured is used for API automation
Q19. How to upload a file using selenium webdriver?
You can upload a file using Selenium WebDriver by sending the file path to the file input element.
Locate the file input element on the webpage using WebDriver
Use the sendKeys() method to send the file path to the file input element
Ensure the file path is accessible from the machine running the test
Q20. what is Data Driven Framework?
Data Driven Framework is a testing framework where test data is separated from the test script.
Test data is stored in external files like Excel sheets or CSV files.
Test scripts are designed to read data from these external files.
This approach makes it easy to modify test data without changing the test script.
It also allows for easy maintenance and scalability of test scripts.
Q21. What is Behavior-Driven Development (BDD), and how does it relate to automation testing?
BDD is a software development approach that encourages collaboration between developers, QA, and non-technical stakeholders to define and test system behavior.
BDD focuses on defining the behavior of a system through examples in plain text
It uses a common language (like Gherkin syntax) to describe features and scenarios
Automation testing in BDD involves writing automated tests that validate the behavior described in the scenarios
Tools like Cucumber and SpecFlow are commonly us...read more
Q22. How Dex Works in Tosca
Dex in Tosca is a data extraction tool used for extracting data from various sources for testing purposes.
Dex is used to extract data from databases, files, APIs, and web services.
It can be used to validate data during test automation.
Dex can also be used to populate test data in Tosca test cases.
Examples of Dex usage include extracting customer information from a database or validating response data from an API.
Q23. How launch browser in automation testing
To launch a browser in automation testing, use WebDriver to instantiate a browser driver and open a specific URL.
Use WebDriver to instantiate a browser driver (e.g. ChromeDriver, FirefoxDriver, etc.)
Specify the URL you want to open in the browser
Perform necessary actions on the webpage using the driver
Q24. What factors do you consider ehile choosing automation tool
Factors considered while choosing automation tool
Compatibility with the technology stack
Ease of use and learning curve
Scalability and flexibility
Integration with other tools
Cost and licensing
Support and community
Reporting and analytics capabilities
Q25. Write selenium code for getting values in a dynamic table
Use Selenium to extract values from a dynamic table
Identify the table using its locator (id, class, xpath, etc.)
Iterate through the rows and columns of the table to extract values
Use Selenium commands like findElements and getText to retrieve the values
Handle dynamic content by waiting for elements to be present or visible
Q26. Which tool you use write automation test scripts
I use Selenium WebDriver to write automation test scripts.
Selenium WebDriver is a popular tool for automating web applications
It supports multiple programming languages like Java, Python, C#
Allows interaction with web elements like buttons, text fields, etc.
Can perform actions like click, type, select, etc. on web elements
Q27. Explain which model you used in your automation framework?
I used the Page Object Model (POM) in my automation framework.
Implemented separate classes for each web page or component
Encapsulated the page elements and related functionalities within each class
Promoted reusability and maintainability of the automation code
Improved readability and scalability of the test scripts
Q28. How will you count the radio buttons on a page in selenium
Counting radio buttons on a page in Selenium using findElements method
Use findElements method to locate all radio buttons on the page
Get the size of the list of elements to count the number of radio buttons
Q29. What are some emerging trends in automation testing, and how do you stay updated with them?
Emerging trends in automation testing include AI and machine learning, shift-left testing, and continuous testing.
AI and machine learning are being used to improve test automation by predicting test cases, identifying patterns, and optimizing test execution.
Shift-left testing involves testing early in the development cycle to catch defects sooner and reduce costs.
Continuous testing integrates automated tests throughout the software delivery pipeline to provide immediate feedb...read more
Q30. How to perform keyboard events in selenium
Keyboard events in Selenium can be performed using the Actions class
Use the Actions class to create a new instance
Use the sendKeys method to send keyboard events like typing text
Use the keyDown and keyUp methods to simulate pressing and releasing keys
Q31. What are test hooks, and how do they impact automation test execution?
Test hooks are methods or functions that allow testers to access internal code for testing purposes.
Test hooks are used to inject test code into the application being tested.
They can be used to monitor and manipulate the behavior of the application during testing.
Test hooks can be implemented using tools like Selenium or TestNG.
They impact automation test execution by providing access to internal components for testing.
Q32. How to get data from excel file in selenium?
Data from Excel file can be retrieved in Selenium using Apache POI library.
Use Apache POI library to read data from Excel files in Selenium
Create a FileInputStream object to read the Excel file
Create a Workbook object using the FileInputStream
Get the desired sheet from the Workbook
Iterate through rows and cells to retrieve data
Close the Workbook and FileInputStream after use
Q33. Explain POM concept in Automation framework.
POM is a design pattern in automation testing where web pages are represented as classes, and the interactions are defined as methods.
POM helps in creating a clear separation between test scripts and page objects.
It improves test maintenance and readability.
Page classes contain locators and methods to interact with the elements on the page.
Test scripts call these methods to perform actions on the page.
Example: LoginPage.java representing the login page with methods like enter...read more
Q34. concept of Javascript used in Selenium, i.e. write value without using sendkeys in selenium.
Javascript can be used in Selenium to execute scripts and interact with web elements. setValue() method can be used to write values without sendKeys().
JavascriptExecutor interface can be used to execute Javascript in Selenium
setValue() method can be used to set value of an input field without using sendKeys()
Example: JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("document.getElementById('elementId').value='value'");
Q35. Advantages of automation testing
Automation testing offers faster feedback, increased test coverage, and improved accuracy.
Automation testing saves time and effort by executing tests automatically.
It allows for faster feedback on code changes and helps catch defects early in the development cycle.
Automation testing can cover a larger number of test cases and scenarios than manual testing.
It improves accuracy and reduces the risk of human error.
Automation testing can be run 24/7, allowing for continuous testi...read more
Q36. Design automation test cases on OTP application
Automation test cases for OTP application
Identify the key functionalities of the OTP application
Create test cases for each functionality
Use automation tools like Selenium or Appium to automate the test cases
Ensure the test cases cover positive and negative scenarios
Include boundary value analysis and equivalence partitioning in test cases
Q37. Automation testing webdriver concept
Webdriver is a tool for automating web application testing. It interacts with the web browser as a user would.
Webdriver is a popular automation testing tool used for web applications
It allows testers to simulate user actions on a web page
Webdriver supports multiple programming languages such as Java, Python, and C#
It can interact with different browsers like Chrome, Firefox, and Safari
Webdriver can be used for functional, regression, and performance testing
Q38. Cypress command for selection locators,
Cypress command for selection locators in QA testing.
Use 'cy.get()' to select elements by CSS selector, class, id, etc.
Use 'cy.contains()' to select elements by their text content.
Use 'cy.xpath()' to select elements using XPath.
Use 'cy.get().eq()' to select a specific element from a list of elements.
Q39. difficulties faced in automation testing
Difficulties faced in automation testing
Complexity of test cases
Maintenance of test scripts
Handling dynamic elements
Integration with third-party tools
Limited support for non-GUI applications
Q40. Advance concept in automation testing
Advanced concepts in automation testing include continuous testing, AI/ML-based testing, and shift-left testing.
Continuous testing involves testing throughout the software development lifecycle.
AI/ML-based testing uses machine learning algorithms to identify patterns and optimize testing.
Shift-left testing involves testing earlier in the development process to catch defects earlier.
Other advanced concepts include test automation frameworks, test data management, and performan...read more
Q41. Scenario of picking test cases for automation
Test cases for automation should be selected based on their frequency of execution, complexity, and stability.
Identify frequently executed test cases
Select test cases with high complexity
Choose stable test cases
Consider test cases with high risk and impact
Prioritize regression test cases
Evaluate the feasibility of automating the test case
Q42. Dynamic xpath Testing scenarios
Dynamic xpath is a technique used in test automation to locate web elements based on changing attributes or properties.
Dynamic xpath is useful when the attributes or properties of web elements are not static
It allows testers to write flexible and robust test scripts
Dynamic xpath can be used to handle scenarios where web elements have dynamic IDs, classes, or other attributes
It helps in maintaining test scripts when the structure of the web page changes
Q43. A scenario to automate and check if iframe is displayed.
Automate scenario to check if iframe is displayed
Identify the iframe element using its locator (id, class, xpath, etc.)
Switch to the iframe using driver.switchTo().frame() method
Verify if the iframe is displayed using driver.findElement() method
Q44. mobile framework for automation testing.
Appium is a popular mobile automation testing framework.
Appium is an open-source tool for automating native, mobile web, and hybrid applications on iOS and Android platforms.
It supports multiple programming languages such as Java, Python, Ruby, etc.
Appium uses the WebDriver protocol to drive iOS and Android apps.
It allows testing on real devices, simulators, and emulators.
Appium can be integrated with CI/CD tools for continuous testing.
Example: Appium can be used to automate ...read more
Q45. 5.Difference between Manual Testing & Automation Testing
Manual testing is done manually by humans while automation testing is done using tools and scripts.
Manual testing is time-consuming and prone to human errors while automation testing is faster and more reliable.
Manual testing is suitable for exploratory testing while automation testing is best for regression testing.
Manual testing requires human skills and knowledge while automation testing requires programming skills.
Manual testing is cost-effective for small projects while ...read more
Q46. How to type text in an input box using Selenium
To type text in an input box using Selenium, use the sendKeys() method.
Locate the input box using a locator strategy
Use the sendKeys() method to enter text into the input box
Example: driver.findElement(By.id("inputBoxId")).sendKeys("Text to be entered")
Q47. To create Feature file and snippet for features file.
To create a Feature file and snippet for features file.
Create a new feature file with a descriptive name
Write the feature description in Gherkin syntax
Add scenarios with steps in Gherkin syntax
Generate a snippet for each step
Implement the step definitions in code
Test the feature using a test runner
Q48. Which automation framework is better for UI
There is no one-size-fits-all answer to this question as it depends on the project requirements and team's expertise.
Choose a framework that aligns with the project requirements and team's expertise
Popular frameworks include Selenium, Appium, TestComplete, and Cypress
Consider factors such as cross-browser compatibility, scalability, and maintainability
Ensure the framework supports the programming language used in the project
Evaluate the framework's reporting capabilities
Q49. How to upload the file in selenium
To upload a file in Selenium, use the sendKeys() method to send the file path to the file input element.
Locate the file input element using appropriate locator strategies
Use the sendKeys() method to send the file path to the file input element
Ensure the file path is correct and accessible by the browser
Q50. What types of locators you used in ur project.
I have used various types of locators in my project, including ID, name, class name, xpath, and CSS selectors.
ID locator: Used to locate elements by their unique ID attribute.
Name locator: Used to locate elements by their name attribute.
Class name locator: Used to locate elements by their class name attribute.
XPath locator: Used to locate elements using XPath expressions.
CSS selector locator: Used to locate elements using CSS selectors.
Q51. How to handle synchronization in Selenium?
Synchronization in Selenium ensures that the automation script waits for the web page to load completely before performing actions.
Use implicit wait to wait for a certain amount of time before throwing an exception if the element is not found.
Use explicit wait to wait for a specific condition to be met before proceeding with the next steps.
Use fluent wait to wait for a certain amount of time for a condition to be met, with polling at regular intervals.
Avoid using Thread.sleep...read more
Q52. What tools used in automation testing
Automation testing tools are software applications that help in executing test cases automatically.
Selenium: A popular open-source tool for web application testing.
Appium: Used for automating mobile applications on iOS and Android platforms.
JUnit: A unit testing framework for Java applications.
TestComplete: A comprehensive tool for functional, regression, and data-driven testing.
Cucumber: A behavior-driven development tool for creating test scripts in a human-readable format....read more
Q53. Why clients go for automation testing and what is my role in regression testing
Clients opt for automation testing to save time and cost. My role in regression testing is to ensure that the software still works after changes.
Automation testing saves time and cost by reducing manual effort
Regression testing ensures that the software still works after changes
My role in regression testing is to create and execute automated test cases
I also analyze test results and report defects to the development team
Q54. Framework for automation testing using cypress
Cypress is a modern JavaScript-based automation testing framework for web applications.
Cypress uses Mocha and Chai for test writing and assertions
It has built-in support for browser automation using Electron
Cypress provides real-time reloading and debugging capabilities
It has a simple and intuitive API for writing tests
Q55. 2)what is testing?diff between manual and automation testing
Testing is the process of evaluating a system or component to determine if it meets specified requirements.
Testing is done to identify defects or errors in software.
Manual testing is performed by human testers, while automation testing is done using tools and scripts.
Manual testing requires human intervention and is time-consuming, while automation testing is faster and more efficient.
Manual testing is suitable for small-scale projects or scenarios that require human judgment...read more
Q56. 4. How can u select a box using selenium?
To select a box using Selenium, we can use the findElement() method with appropriate locator strategies.
Identify the element using a unique locator such as ID, name, class name, etc.
Use the findElement() method to locate the element on the web page.
Perform actions on the element using various methods such as click(), sendKeys(), etc.
Example: WebElement checkbox = driver.findElement(By.id("checkbox_id")); checkbox.click();
Q57. What's the criteria to choose an automation framework
Criteria for choosing an automation framework include compatibility with technology stack, ease of use, scalability, community support, and cost.
Compatibility with technology stack
Ease of use for team members
Scalability for future needs
Community support for troubleshooting and updates
Cost of implementation and maintenance
Q58. What are the most used locators?
The most used locators in automation testing are ID, class name, name, xpath, and CSS selector.
ID: Unique identifier for an element
Class name: Name of the class attribute of an element
Name: Name attribute of an element
XPath: Path of the element in the XML document
CSS selector: Selector based on CSS attributes
Q59. Different locators?
Different locators are used in software testing to identify and interact with elements on a web page or application.
XPath: Uses path expressions to navigate through elements in an XML document
CSS Selector: Selects elements based on their attributes, classes, or IDs
ID: Locates elements by their unique identifier
Name: Finds elements by their name attribute
Class Name: Identifies elements by their class attribute
Tag Name: Locates elements by their HTML tag name
Link Text: Finds el...read more
Q60. Automation testing with testing tools
Automation testing with testing tools involves using software to execute tests and compare actual results with expected results.
Automation testing saves time and effort compared to manual testing
Testing tools like Selenium, Appium, and TestComplete are commonly used for automation testing
Automation testing can be used for regression testing, load testing, and performance testing
Automation testing requires programming skills and knowledge of testing frameworks
Automation testin...read more
Q61. What is the benefit manual Testing and Automation Testing?
Manual testing allows for human intuition and exploratory testing while automation testing saves time and increases efficiency.
Manual testing allows for more thorough testing of user experience and edge cases
Automation testing saves time and increases efficiency for repetitive tasks
Manual testing is better suited for exploratory testing and ad-hoc testing
Automation testing is better suited for regression testing and load testing
A combination of both manual and automation test...read more
Q62. 1 tell me all locators
There are several locators used in Selenium such as ID, Name, Class Name, Tag Name, Link Text, and Partial Link Text.
ID - unique identifier for an element
Name - name attribute of an element
Class Name - class attribute of an element
Tag Name - HTML tag name of an element
Link Text - exact text of a link element
Partial Link Text - partial text of a link element
Q63. Explain your automotion framework
Our automation framework is a keyword-driven framework that allows for easy test case creation and maintenance.
Keyword-driven approach for easy test case creation
Modular design for reusability of test components
Supports data-driven testing for multiple test data inputs
Integration with CI/CD tools for continuous testing
Built-in reporting for test execution results
Q64. Automation Framework explanation - E2E in detail
E2E automation framework is a comprehensive approach to testing that covers the entire software development life cycle.
E2E stands for end-to-end testing, which involves testing the entire application from start to finish.
The framework includes tools and processes for automating testing, such as test scripts and test data management.
E2E testing helps ensure that all components of the application work together seamlessly.
It also helps identify and fix issues early in the develo...read more
Q65. Locators in automation selenium
Locators in automation selenium are used to identify web elements on a webpage for testing purposes.
Locators include ID, class name, name, tag name, link text, partial link text, and xpath.
ID is the most efficient locator as it is unique for each element.
Xpath is powerful but can be slow and brittle if not used correctly.
Using CSS selectors can also be a good alternative to xpath.
It is important to choose the right locator strategy based on the specific element and context.
Q66. Difference b/w manual and automation testing?
Manual testing is done by humans, while automation testing is done by using tools and scripts.
Manual testing is time-consuming and prone to human errors.
Automation testing is faster and more reliable.
Manual testing is suitable for exploratory testing and usability testing.
Automation testing is suitable for regression testing and load testing.
Manual testing requires human skills and experience.
Automation testing requires programming skills and knowledge of testing tools.
Manual...read more
Q67. Write screenshot script in selenium
To take a screenshot in Selenium, use the getScreenshotAs method
Create a WebDriver instance
Use the getScreenshotAs method to capture the screenshot
Save the screenshot to a file using File class
Q68. 1. Explain your Automation Framework
Our Automation Framework is a modular, data-driven framework using Selenium and TestNG.
Modular design allows for easy maintenance and scalability
Data-driven approach separates test data from test scripts
Integration with Selenium for web automation
Utilizes TestNG for test execution and reporting
Q69. Locators used in automation
Locators are used in automation testing to identify and interact with web elements on a webpage.
Locators are used to find elements on a webpage based on their attributes such as ID, class, name, etc.
Common locators include ID, class name, name, tag name, link text, partial link text, and XPath.
Using unique locators helps in creating stable and reliable automation scripts.
Examples: driver.findElement(By.id("elementId")), driver.findElement(By.className("elementClass"))
Q70. How do you rate yourself in manual and Automation testing
I rate myself highly in both manual and automation testing
I have extensive experience in manual testing and have developed a keen eye for identifying defects
I am proficient in automation testing tools such as Selenium and have created automated test scripts for various projects
I understand the importance of both manual and automation testing and know when to use each approach
I continuously strive to improve my skills in both areas through training and self-learning
Q71. How to read data from excel in selenium
Data from Excel can be read in Selenium using Apache POI library
Use Apache POI library to read data from Excel files
Create a FileInputStream object to read the Excel file
Identify the sheet and row/column to read data from
Use Cell and Row classes to get the data from specific cells
Handle different data types like string, numeric, boolean, etc.
Q72. How do you run your automation Regression scripts
I run automation Regression scripts using a test automation framework and scheduling tools.
I organize regression scripts into test suites based on functionality
I use a test automation framework like Selenium or Appium to execute the scripts
I schedule the regression runs using tools like Jenkins or TeamCity
I analyze the test results and report any failures for further investigation
Q73. Is Manual Testing Report and Automation Testing Report Varies?
Yes, manual testing report and automation testing report can vary.
Manual testing report is based on the tester's observations and findings during manual testing.
Automation testing report is generated by automated testing tools and includes test results and logs.
Manual testing report may include subjective feedback and observations that cannot be captured by automation.
Automation testing report provides detailed information on test execution, pass/fail status, and performance ...read more
Q74. Which is the preferable locator for dynamic elements
The preferable locator for dynamic elements is XPath.
XPath is more powerful and flexible compared to other locators like ID or class name
XPath can locate elements based on their attributes, position, text, etc.
Using XPath allows for more precise and reliable element identification
Q75. what is the more important subject between Automation & Manual Testing?
Both Automation & Manual Testing are important for Quality Test Engineer.
Manual testing is important for exploratory testing and finding edge cases.
Automation testing is important for regression testing and saving time.
The importance of each subject depends on the project requirements and resources available.
A balance between both manual and automation testing is necessary for effective quality assurance.
Q76. How to navigate between different windows selenium code?
To navigate between different windows in Selenium code, use getWindowHandles() to get all window handles and switchTo() to switch between them.
Use getWindowHandles() to get all window handles
Use switchTo() to switch between windows
Example: Set
windowHandles = driver.getWindowHandles(); driver.switchTo().window(windowHandles.toArray()[1]);
Q77. what is manual anda automation testing
Manual testing is done by humans, while automation testing is done by software tools.
Manual testing involves executing test cases manually without any automation tools.
Automation testing involves using software tools to execute test cases.
Manual testing is time-consuming and prone to human errors.
Automation testing is faster, more reliable, and can be repeated multiple times.
Manual testing is suitable for exploratory testing, while automation testing is suitable for regressio...read more
Q78. How to hand window in selenium
To handle windows in Selenium, you can use the switchTo() method to switch between windows.
Use getWindowHandles() to get all window handles
Use switchTo().window() to switch to a specific window handle
Perform actions on the desired window
Q79. What is difference between mannual and automation testing description
Manual testing is done by humans while automation testing is done by machines.
Manual testing involves human intervention and observation while automation testing involves the use of tools and scripts.
Manual testing is time-consuming and prone to human errors while automation testing is faster and more accurate.
Manual testing is suitable for exploratory testing while automation testing is suitable for regression testing.
Manual testing requires less technical knowledge while au...read more
Q80. How to click in selenium
In Selenium, clicking on elements can be done using the click() method.
Locate the element using appropriate locator strategies
Use the click() method to perform the click action
Handle any exceptions that may occur during the click operation
Q81. What is Manual and Automation testing?
Manual testing is testing software manually without the use of automation tools, while automation testing is testing software using automation tools.
Manual testing involves testers manually executing test cases without the use of automation tools.
Automation testing involves using automation tools to execute test cases.
Manual testing is time-consuming and prone to human error.
Automation testing is faster, more reliable, and can be used for repetitive tasks.
Examples of manual t...read more
Q82. Difference between POM & pagefactory
POM is a design pattern that separates test scripts from page objects, while PageFactory is a class in Selenium used to initialize elements in a page object model.
POM (Page Object Model) is a design pattern that organizes test scripts by separating them from page objects.
PageFactory is a class in Selenium that is used to initialize elements in a page object model.
POM helps in improving code reusability, readability, and maintenance.
PageFactory simplifies the process of initia...read more
Q83. What do u know about manual and automation testing
Manual testing involves human testers executing test cases without automation tools, while automation testing uses tools to execute test cases.
Manual testing requires human intervention to execute test cases and verify results
Automation testing involves using tools to automate test case execution and result verification
Manual testing is time-consuming and prone to human error
Automation testing is faster, more reliable, and can be used for repetitive tasks
Manual testing is sui...read more
Q84. From Selenium -> Which Automation framework I have implemented in my project . Explain each framework components. How to handle dynamic web element. how to handle hidden element. how to upload file in selenium,...
read moreAnswering questions related to Selenium automation framework and its components.
Implemented Page Object Model (POM) framework with TestNG and Maven
POM components: Page classes, Test classes, Utility classes, Test data files
Dynamic web element handled using Explicit and Implicit Waits
Hidden element handled using JavaScriptExecutor
File upload handled using sendKeys() method
HashMap used to store test data and retrieve it in test methods
Screenshots taken using TakesScreenshot int...read more
Q85. What is manual testing and why we use automation testing
Manual testing is testing software manually by testers, while automation testing is using tools to automate testing processes.
Manual testing involves testers manually executing test cases without the use of automation tools
Automation testing involves using tools to automate the execution of test cases
Automation testing is faster, more reliable, and can be repeated multiple times without human intervention
Automation testing is useful for regression testing, load testing, and r...read more
Q86. Script in selenium
Script in Selenium is a set of instructions written in programming language to automate web browser actions.
Selenium scripts can be written in various programming languages such as Java, Python, C#, etc.
Scripts can be used to automate repetitive tasks such as filling out forms, clicking buttons, etc.
Selenium provides various methods and functions to interact with web elements such as findElement(), click(), sendKeys(), etc.
Scripts can be executed on different browsers such as...read more
Q87. Write testcases in automation and manual testing
Testcases in automation and manual testing
Identify the test scenarios and requirements
Create test cases for both automation and manual testing
Ensure test cases cover positive and negative scenarios
Execute test cases and record results
Report and track defects
Q88. Chrome capabilities of selenium automation
Selenium automation can control Chrome browser capabilities such as handling pop-ups, cookies, and browser settings.
Selenium can handle pop-ups and alerts using the switchTo() method
Cookies can be managed using the addCookie() and deleteCookie() methods
Browser settings can be modified using the ChromeOptions class
Examples: disabling images, setting the browser window size, and using headless mode
Q89. What is the importance of manual testing when compared to automation testing
Manual testing is important for exploratory testing, usability testing, and ad-hoc testing.
Manual testing allows for exploratory testing where testers can explore the application and identify unexpected issues.
Usability testing, which involves real users interacting with the software, is best done manually to capture user experience.
Ad-hoc testing, where testers randomly test the application without predefined test cases, is more effective when done manually.
Manual testing is...read more
Q90. Difference between manual and automation testing.
Manual testing is done manually by testers, while automation testing uses tools to execute test cases.
Manual testing involves human intervention to test software functionality.
Automation testing uses tools to execute test cases, reducing human effort.
Manual testing is time-consuming and prone to errors, while automation testing is faster and more reliable.
Manual testing is suitable for exploratory testing, while automation testing is ideal for regression testing.
Examples: Man...read more
Q91. will be able to do the manual and automation testing both?
Yes, I am proficient in both manual and automation testing.
I have experience in creating test cases and executing them manually.
I am skilled in using automation tools like Selenium for testing.
I understand the benefits of both manual and automation testing and know when to use each method.
I have successfully implemented automation scripts for regression testing.
I am familiar with CI/CD pipelines for automated testing.
Q92. will automation testing replace manual testing completely?
Automation testing cannot completely replace manual testing due to certain limitations and the need for human intuition.
Automation testing is great for repetitive tasks and regression testing.
Manual testing is essential for exploratory testing, usability testing, and edge case scenarios.
Certain aspects of testing like user experience and human intuition cannot be automated.
Combining both manual and automation testing is the most effective approach for comprehensive test cover...read more
Q93. What is difference between Manual Testing and automation testing
Manual testing is done by humans without the use of automation tools, while automation testing involves using tools to execute test cases.
Manual testing is time-consuming and prone to human error.
Automation testing is faster and more reliable.
Manual testing is suitable for exploratory testing, ad-hoc testing, and usability testing.
Automation testing is ideal for regression testing, performance testing, and load testing.
Manual testing requires human intervention for each test ...read more
Q94. What kind of testing I have to work? Manual testing or automation testing?
It depends on the project requirements and resources available.
Manual testing is suitable for small projects or projects with frequent changes.
Automation testing is suitable for large projects or projects with repetitive tasks.
A combination of both manual and automation testing can be used for optimal results.
Factors such as budget, timeline, and skillset of the team should also be considered.
Ultimately, the decision should be based on what will provide the most efficient and...read more
Q95. HTTP methods. difference b/w manual and automation testing
HTTP methods differ in manual and automation testing in terms of execution speed, accuracy, and coverage.
Manual testing involves human intervention and is time-consuming.
Automation testing is faster and more accurate.
Automation testing can cover a larger number of test cases.
Manual testing is better for exploratory testing and usability testing.
Automation testing is better for regression testing and load testing.
Both manual and automation testing are important for comprehensi...read more
Q96. Advantages of automation testing over manual testing.
Automation testing offers advantages such as increased efficiency, faster execution, broader test coverage, and improved accuracy.
Increased efficiency: Automation testing allows for the execution of repetitive test cases quickly and accurately.
Faster execution: Automated tests can be run simultaneously on multiple devices or platforms, reducing the overall testing time.
Broader test coverage: Automation testing enables the testing of a wide range of scenarios and configuration...read more
Q97. Automation testing VS manual testing
Automation testing is faster, more reliable, and scalable compared to manual testing.
Automation testing is faster as it can execute tests much quicker than manual testing.
Automation testing is more reliable as it eliminates human errors and ensures consistent test results.
Automation testing is scalable as it can run tests on multiple configurations and environments simultaneously.
Manual testing is better suited for exploratory testing and usability testing where human judgmen...read more
Q98. Uses of manual and automation testing
Manual testing is done by humans to ensure software functionality, while automation testing uses tools to execute test cases.
Manual testing involves testers executing test cases manually without the use of automation tools
Automation testing involves using tools to execute test cases, often faster and more efficiently than manual testing
Manual testing is better suited for exploratory testing and ad-hoc testing, while automation testing is ideal for repetitive tasks and regress...read more
Top Interview Questions for Related Skills
Interview Questions of Automation Testing Related Designations
Interview experiences of popular companies
Reviews
Interviews
Salaries
Users/Month