Im automating an external product where I dont have access to source code.
this is the view source code
<div class="row-fluid">
<div class="span10 offset1" id="home">
<div id="myCarousel" class="carousel slide">
<div id="myCarousel-heading">
<p> What's new </p>
</div>
<div class="carousel-inner">
<div class="item active">
<a href="CreateUserDocument.aspx?code=Brochure_Print_Ship_Advice">
<img src="Custom/Themes/Vanguard/Inserts/images/carousel/Crsl_Advice.jpg" alt="">
</a>
</div><!-- End of div.item -->
<div class="item">
<a href="CreateUserDocument.aspx?code=Invite_Print_Mail_RES_Mtg">
<img src="Custom/Themes/Vanguard/Inserts/images/carousel/Crsl_banner_all_green.jpg" alt="">
</a>
</div><!-- End of div.item -->
<div class="item">
<a href="CreateUserDocument.aspx?code=Presentation_PDF_RES_Mtg">
<img src="Custom/Themes/Vanguard/Inserts/images/carousel/Crsl_RES_Pres.jpg" alt="">
</a>
</div><!-- End of div.item -->
</div>
I want to click the last hyperlink after page load.Landing page has sso authentication, so i added implicit wait for 20 seconds after page load.
java code
driver = (WebDriver) new InternetExplorerDriver(capab1);
driver.get("url");
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.findElement(By.xpath("//a[@href = 'CreateUserDocument.aspx?code=Presentation_PDF_RES_Mtg']")).click();
I use Selenium 2.44 library with 2.32 IEDriverServer.exe in 32 bit IE 9 browser.
Any thoughts are appreciated.Thanks !