I want to take screenshots of all the related search results suggestions based on the keyword entered but one after another, ho do i do this in selenium??
for(int i=1; i<=sheet.getLastRowNum(); i++) {
//Import data for company names.
cell = sheet.getRow(i).getCell(1);
cell.setCellType(CellType.STRING);
Thread.sleep(3000);
//Here i'm reading and writing inputs from excel sheet
WebElement SearchBar = driver.findElement(By.className("search-global-typeahead__input"));
SearchBar.sendKeys(cell.getStringCellValue(), Keys.ENTER);
Thread.sleep(3000);
wait = new WebDriverWait(driver,30);
SearchBar.submit();