Accenture
20+ ICICI Bank Interview Questions and Answers
Q1. 1.types of wait, 2. Locators in selenium 3.grid vs webdriver 4.css selector vs xpath 5.types of list 6. What is use of action class 7.java script executor 8.interfaces 9.oops concepts 10.windows/alert nagivatio...
read moreInterview questions for Automation Test Engineer
Types of wait - implicit, explicit, fluent
Locators in Selenium - ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, XPath
Grid vs WebDriver - Grid allows parallel execution on multiple machines, WebDriver executes tests on a single machine
CSS Selector vs XPath - CSS Selector is faster, XPath is more powerful
Types of list - ArrayList, LinkedList, Vector
Use of Action Class - performing advanced user interac...read more
Q2. Explain the automation framework that you have worked on
I have worked on a hybrid automation framework that combines data-driven and keyword-driven approaches.
The framework uses Excel sheets to store test data and keywords
It uses Selenium WebDriver for web automation and Appium for mobile automation
It has a modular structure with reusable functions and libraries
It generates detailed HTML reports with screenshots and logs
It supports parallel execution using TestNG
Example: I used this framework to automate regression tests for a web...read more
Q3. Write syntax to take the screenshot in selenium python
Syntax to take a screenshot in Selenium Python.
Import the necessary modules - 'webdriver' and 'datetime'
Create an instance of the webdriver
Use the 'get_screenshot_as_file' method to take the screenshot
Save the screenshot with a unique name and location
Example: driver.get_screenshot_as_file('C:/Screenshots/screenshot.png')
Q4. Writ syntax to switch on alert box
Syntax to switch on alert box
Use driver.switch_to.alert() method to switch to alert box
Use accept() method to click on OK button in alert box
Use dismiss() method to click on Cancel button in alert box
Q5. How to handle popup in source page?
To handle popups in source page, use switchTo().alert() method in Selenium WebDriver.
Use switchTo().alert() method to switch focus to the popup
Use getText() method to get the text from the popup
Use accept() method to click on the OK button in the popup
Use dismiss() method to click on the Cancel button in the popup
Q6. How to automate captcha in selenium ?
Automating captcha in Selenium can be challenging but can be achieved using third-party services or by bypassing the captcha.
Use third-party captcha solving services like 2Captcha or AntiCaptcha
Implement a custom solution to bypass the captcha by directly interacting with the captcha element
Use headless browsers like PhantomJS to automate captcha handling
Q7. difference between hard and soft assert
Hard assert stops the test execution on failure while soft assert continues the test execution.
Hard assert is used when failure of a step should stop the test execution
Soft assert is used when failure of a step should not stop the test execution
Hard assert throws an exception when it fails
Soft assert logs the failure and continues the test execution
Example of hard assert: assert.assertEquals(expected, actual)
Example of soft assert: softAssert.assertEquals(expected, actual)
Q8. Explain sprint ceremonies
Sprint ceremonies are meetings held during a sprint to plan, review, and improve the development process.
Sprint Planning: Meeting to plan the work for the upcoming sprint
Daily Stand-up: Daily meeting to discuss progress and plan for the day
Sprint Review: Meeting to review the work completed during the sprint
Sprint Retrospective: Meeting to reflect on the sprint and identify areas for improvement
Q9. Tool used to automate web objects in worksoft
Worksoft Certify is the tool used to automate web objects in Worksoft.
Worksoft Certify is a popular automation tool for testing web applications
It allows testers to automate the testing of web objects such as buttons, links, and input fields
Worksoft Certify uses a visual scripting interface to create and execute test scripts
Q10. Reverse a string , explain automation framework
Reverse a string using automation framework
Use a programming language like Java or Python to write a function that reverses a given string
Utilize automation testing tools like Selenium or Appium to automate the process of inputting a string and verifying the reversed output
Create test cases to ensure the string reversal functionality works correctly in different scenarios
Q11. Difference between findelement and findelement
findelement is a method used in Selenium to locate a single web element on a webpage, while findelements is used to locate multiple web elements.
findelement returns the first matching element found on the webpage
findelements returns a list of all matching elements found on the webpage
findelement is used when only one element needs to be located, while findelements is used when multiple elements need to be located
Q12. Write a program to reverse a number
Program to reverse a number
Convert the number to a string to easily manipulate each digit
Iterate through the string in reverse order and append each digit to a new string
Convert the reversed string back to an integer and return
Q13. Waits in selenium
Waits in Selenium are used to synchronize tests with the application's state.
Types of waits in Selenium: Implicit, Explicit, Fluent
Implicit wait: Set at the beginning of the test and applies to all elements
Explicit wait: Waits for a specific condition to be met before proceeding
Fluent wait: Waits for a condition with a defined maximum time limit
Q14. Explain different components of selenium
Selenium is a suite of tools used for automating web browsers.
Selenium IDE: Record and playback tool for creating automated tests
Selenium WebDriver: Automation tool for writing test scripts in various programming languages
Selenium Grid: Distributes test execution on multiple machines for parallel testing
Selenium RC (Remote Control): Deprecated tool for running tests in multiple browsers
Q15. difference between close and wait
Close is used to close a window or application, while wait is used to pause the execution for a specified amount of time.
Close is used to close a window or application after the test is completed
Wait is used to pause the execution for a specified amount of time, such as waiting for an element to load before proceeding
Example: driver.close() will close the current window, while Thread.sleep(5000) will pause the execution for 5 seconds
Q16. What is xpath in selenium
XPath in Selenium is a locator strategy used to navigate through the HTML structure of a web page to identify elements.
XPath stands for XML Path Language.
It is used to locate elements on a web page by their XML path.
XPath expressions can be used to select nodes or elements in an XML document.
It can be used to identify elements based on their attributes, text content, position, etc.
XPath can be absolute or relative, with the latter being more flexible and recommended.
Example: ...read more
Q17. what is selenium
Selenium is a popular open-source automation testing tool used for web application testing.
Selenium supports multiple programming languages like Java, Python, C#, etc.
It allows testers to write test scripts in a variety of IDEs like Eclipse, IntelliJ, etc.
Selenium can automate interactions with web browsers like Chrome, Firefox, etc.
It can perform various testing tasks such as form filling, button clicking, data extraction, etc.
Q18. different types of wait
Different types of wait include implicit, explicit, and fluent waits in automation testing.
Implicit wait: Waits for a certain amount of time before throwing a NoSuchElementException if the element is not found.
Explicit wait: Waits for a certain condition to be met before proceeding further in the code.
Fluent wait: Waits for a condition to be met with a defined polling frequency and timeout.
Example: Using implicit wait to wait for a page to load completely before interacting w...read more
Q19. How to log a bug
To log a bug, follow these steps
First, identify the bug by reproducing it consistently
Next, gather all necessary information such as screenshots, logs, and steps to reproduce
Then, log into the bug tracking system and create a new bug report
Provide a clear and detailed description of the bug, including the expected and actual behavior
Assign the bug to the appropriate team member for further investigation and resolution
Q20. Explain framework
A framework is a set of guidelines, libraries, and tools that help in developing and executing automated tests efficiently.
Provides structure and organization for test automation code
Promotes reusability of code and components
Offers built-in functions and utilities for common testing tasks
Supports integration with test management tools
Examples: Selenium WebDriver, TestNG, Cucumber
More about working at Accenture
Interview Process at ICICI Bank
Top Automation Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month