I am trying to validate the message which comes on the web page after performing an action (updating/creation of any records in the system.) The problem is the message disappear after 3-4 seconds, and hence I am unable to capture any changes in DOM(Javascript)
Attached is the screenshot -
I tried BrowserDriver.getBrowserDriver().getPageSource().contains("warning message here") with assertTrue() statement but its not working.
please let me know the approach
DOMlooks like when then message pops up? I had to do similar stuff with toaster<script type="text/javascript"> //<![CDATA[ $("div.fadable").delay(2000) .fadeOut("slow", function () { $("div.fadable").remove(); }); //<![CDATA[</script><div class="message success fadable">..</div>However, I can not see the details as the message disappears soon and so is this div classJavabindings?And, can is that a pulic site?