Add office photos
Engaged Employer

Ness Digital Engineering

3.4
based on 567 Reviews
Filter interviews by

Luthra Group Company Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. How to execute feature file in parallel in BDD Cucumber Framework

Ans.

To execute feature files in parallel in BDD Cucumber Framework, we can use tools like Maven Surefire plugin or Cucumber-JVM-Parallel-Plugin.

  • Use Maven Surefire plugin to run tests in parallel by adding and tags in pom.xml file

  • Use Cucumber-JVM-Parallel-Plugin to run tests in parallel by adding @CucumberOptions(plugin = {"json:target/cucumber-report/cucumber.json", "com.github.temyers:cucumber-jvm-parallel-plugin:5.0.0"}, threads = 3) annotation in the runner class

  • Ensure that ...read more

Add your answer

Q2. How to handle Multiple popups in selenium?

Ans.

To handle multiple popups in Selenium, we can use getWindowHandles() and switchTo() methods.

  • Use getWindowHandles() method to get all the window handles

  • Switch to the desired window using switchTo() method

  • Perform actions on the popup window

  • Switch back to the main window using switchTo() method

Add your answer

Q3. How to get all the options in a DropDown?

Ans.

To get all options in a dropdown, use the getOptions() method and store the values in an array of strings.

  • Locate the dropdown element using any of the locators

  • Create a Select class object by passing the dropdown element as a parameter

  • Use the getOptions() method to get all the options in the dropdown

  • Store the options in an array of strings

Add your answer

Q4. How to send credentials via URL?

Ans.

Credentials can be sent via URL by appending them to the URL as query parameters.

  • Append the username and password as query parameters to the URL

  • Encode the username and password using Base64 encoding

  • Example: http://example.com/login?username=admin&password=encoded_password

Add your answer
Discover Luthra Group Company interview dos and don'ts from real experiences

Q5. How to Scroll page to desired ocation?

Ans.

To scroll page to desired location, use JavaScriptExecutor and scrollTo() method.

  • Create an instance of JavaScriptExecutor

  • Use executeScript() method to execute scrollTo() method

  • Pass the desired location as arguments to scrollTo() method

  • Example: ((JavascriptExecutor) driver).executeScript("window.scrollTo(0, document.body.scrollHeight)");

Add your answer

Q6. Difference between Explicit wait and Fluent Wait?

Ans.

Explicit wait waits for a specific condition while Fluent wait waits for a condition with polling interval.

  • Explicit wait waits for a specific condition to occur before proceeding further

  • Fluent wait waits for a condition with a polling interval and ignores exceptions

  • Explicit wait is used when we know the condition and the maximum time to wait for it

  • Fluent wait is used when we don't know the maximum time to wait for a condition

  • Example of explicit wait: WebDriverWait wait = new ...read more

Add your answer

Q7. how to initialize chrome driver?

Ans.

To initialize Chrome driver, create an instance of ChromeDriver class.

  • Create an instance of ChromeDriver class

  • Set the path of ChromeDriver executable file

  • Use the instance to interact with the browser

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Selenium Automation Interview Questions from Similar Companies

3.7
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter