Selenium Notification handling

On  clicking on create,A notification message” Creating sub folder” will come after 5-6 seconds,Sub folder created message will come

I want to wait until the message subfolder created.

String element = driver.findelement(By.cssSelector(“span.noty.text”).gettext();
syso( element)
(Now in element “Creating sub folder..message will be there)
I want to wait upto the notification message changes from “”Creating sub folder” to  “Sub folder created”

chaitanya Default Asked on July 23, 2015 in Selenium WebDriver.
Add Comment
1 Answer(s)

try to use
WebDriverWait wait = new WebDriverWait(driver,20);
wait.until(ExpectedConditions.textToBePresentInElement(element, text));

victor Reviewer Answered on July 25, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.