I want to click on an icon which opens a form . I have used following code in my selenium script but it failed to locate the icon
driver.findElement(By.xpath(".//*[@id='createprojectform']")).click();
Below is the code of my page:
<span class="createprojects">
<a id="createprojectform" class="ui-button ui-corner-all ui-widget" role="button">
<span class="icon-New_Project" style="right: 35px; top: -54px; position: absolute; font-size: 40px; color: #1E407C;" title="Create new projects"></span>
</a>
</span>
I am very new to selenium. Kindly help m eout in resolving this issue
Thanks & Regards,