Nagarro- Interview Questions

manager, person, people

Nagarro Interview Questions

Collection of Nagarro Interview Questions. The section contains a real-time interview experience shared by the interviewees.

Technical Round 1

1. How to handle alerts?

driver.switchTo().alert() -- >> .accept();
| dismiss(); | getText(); | sendKeys("Message");,

 

2. How to take screenshots?

File screenshot = ((TakesScreenshot) driver)
.getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(screenshot,
new File(".//screenshot/" + fileName));

 

3. What is actions class? Write the syntax for it.

WebElement link = 
driver.findElement(By.xpath("//button[text()
='Double-Click Me To See Alert']"));
Actions action =
new Actions(driver); action.doubleClick(link).perform();
doubleClick() | dragAndDrop() | contextClick()

 

4. How to capture broken links?

 

5. What are the different types of waits?

driver.manage().timeouts()
.implicitlyWait(implicitWait, TimeUnit.SECONDS);
WebDriverWait explicitWait = new WebDriverWait(driver, 10);
explicitWait.until
( ExpectedConditions.visibilityOfElementLocated
(By.xpath("//span[contains(text(),'applied ..!')]")));
Wait<WebDriver> fluentWait =
new FluentWait<WebDriver>(driver)
.withTimeout(Duration.ofSeconds(30))
.pollingEvery(Duration.ofSeconds(3))
.ignoring(NoSuchElementException.class);

 

Can you write syntax for Implcit and Explicit wait?

 

6. Scripts execution in HEADLESS mode?

ChromeOptions options = new ChromeOptions();
options.addArguments("headless");
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver(options);
How many ways it is possible?

 

7. DesiredCapabilities? Write down the syntax?

DesiredCapabilities desiredCapabilities 
= DesiredCapabilities.chrome();
desiredCapabilities
.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);
desiredCapabilities
.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
ChromeOptions chromeOptions
= new ChromeOptions();
chromeOptions.merge(desiredCapabilities);
WebDriverManager.chromedriver().setup();
WebDriver driver
= new ChromeDriver(chromeOptions);

8. setCapabilities and addArguements?

ChromeOptions options = new ChromeOptions(); 
options.addArguments("headless");
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver(options);

 

9. Write data (with Columns) using Apache POI?

10. How many Meetings in Agile?

Daily scrum, Sprint planning, Sprint retrospective Backlog Refinement/Grooming

11. You are the only one Automation resource in your project,
What would be your approach?
Are you able to design the framework from scratch?
Cucumber -> Feature file, Steps and
how to run the test cases?

Technical Round 2

About Nagarro

Check more questions on JavaSeleniumDatabaseAPI, and Manual testing.

Leave a Comment

Your email address will not be published.