How to wait(5min to 15min) for specific email and click to the email which has subject "TEST"?

0 votes
When I set the email to deliver after 10 or 15th minute, how to wait for the particular email and click on it?
Jul 10 in Selenium by bkarun
• 120 points
49 views

1 answer to this question.

0 votes

Hey bkarun, to wait for a particular email (web element) you can try something like this:

WebDriverWait wait = new WebDriverWait(webDriver, timeoutInSeconds);  //5 mins or 15 mins
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id<locator>));
elementLocated.click()
answered Jul 12 by Abha
• 16,440 points

Related Questions In Selenium

0 votes
1 answer

How to resolve the issue: Xpath for node without text but child has text

This will help you: //strong[not(normalize-space(text()))]/span[tex ...READ MORE

answered Jun 11, 2018 in Selenium by Samarpit
• 5,130 points
224 views
0 votes
3 answers
0 votes
1 answer

How to create a executable jar file for TestNG and the runnnig point should be the Xml file

Use Eclipse Export Wizard. While exporting, select "Create ...READ MORE

answered Aug 24, 2018 in Selenium by Meci Matt
• 9,400 points
1,197 views
0 votes
1 answer

How to wait for the webpage to load in selenium using java

Firstly, when you launch a web application, ...READ MORE

answered Aug 28, 2018 in Selenium by bug_seeker
• 15,310 points
118 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
259 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
628 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
256 views