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
81 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
• 27,180 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
427 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,420 points
2,133 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,360 points
232 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,110 points
1,009 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
1,154 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
894 views
0 votes
2 answers

Python & Selenium: How to find and click on YouTube's Like button

Hello Nitin, as the Like button on ...READ MORE

answered Aug 23 in Selenium by Abha
• 27,180 points
728 views