Accenture
LV Automation Pte. Ltd. Interview Questions and Answers
Q1. How to handle webtable in selenium
Webtables in Selenium can be handled using methods like findElements, getText, getAttribute, etc.
Use findElements method to locate the table and its rows
Iterate through rows and columns using loops
Use getText method to retrieve text from cells
Use getAttribute method to retrieve specific attributes like class, id, etc.
Q2. Types of xpath, how to access
There are two types of XPath: Absolute and Relative. Absolute XPath starts from the root node, while Relative XPath starts from any node.
Absolute XPath starts with a single forward slash (/) and is used to select nodes starting from the root node.
Relative XPath starts with a double forward slash (//) and is used to select nodes anywhere in the document.
Examples: Absolute XPath - /html/body/div[1]/p[2], Relative XPath - //input[@id='username']
Q3. Different types of selenium waits
Different types of Selenium waits include implicit, explicit, and fluent waits.
Implicit wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit wait: Waits for a certain condition to occur before proceeding further in the code.
Fluent wait: Waits for a condition to be true with a specified frequency of checking.
Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Q4. Automation Framework used
We use a hybrid automation framework combining keyword-driven and data-driven approaches.
Combines keyword-driven and data-driven testing
Allows for reusability of test scripts
Enhances maintainability and scalability of automation suite
Q5. Implicit wait Explicit wait
Implicit wait is used to wait for elements to load in the DOM, while explicit wait is used to wait for a specific condition to be met.
Implicit wait is set globally for the entire duration of the WebDriver instance.
Explicit wait is applied only to specific elements or conditions.
Implicit wait is defined once and applied to all elements, while explicit wait is defined each time it is needed.
Example: Implicit wait - driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS)...read more
Q6. How to switch iframe
To switch iframes, you need to first locate the iframe element and then switch to it using appropriate methods.
Locate the iframe element using its index, name, id, or any other attribute
Switch to the iframe using driver.switchTo().frame() method
To switch back to the default content, use driver.switchTo().defaultContent()
More about working at Accenture
Interview Process at LV Automation Pte. Ltd.
Top Senior QA Analyst Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month