Created
March 13, 2015 16:52
-
-
Save anonymous/c81bb74d9bbcd94b0398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function removeAsd() { | |
document.getElementById("parentDiv").innerHTML = "<div id='asd'></div>"; | |
} | |
</script> | |
<div id="parentDiv"> | |
<div id='asd'></div> | |
<div id="woop">some stuff!</div> | |
<a id="clickme" href="#" onclick="javascript:removeAsd()">remove</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver.get("C:\\expec_not_tc.html"); | |
driver.findElement(By.id("clickme")).click(); | |
(new WebDriverWait(driver, 10)).until(ExpectedConditions.not(ExpectedConditions.presenceOfElementLocated(By.id("woop")))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment