Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

sugan san

Ranch Hand
+ Follow
since May 23, 2013
Cows and Likes
Cows
Total received
-2
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sugan san

Hi I need to write XPATH expression for finding input projectName from the below XML and have to enter/sendkeys with that using selenium webdriver. Anyone can help me building xpath expression?


<div class="container-fluid container-fluid-my">
<div class="row-fluid">
<div class="row-fluid" style="margin-bottom: -22px; margin-top: 5px;">
<div class="row-fluid">
<div class="span12">
<div class="info-container">
<ul>
<li class="labelArrow">Project Name</li>
<li class="pointer"/>
<li>
<input id="projectName" class="projectmetadata" type="text" placeholder="Add Project Name" name="projectName" value=""/>
</li>
</ul>
</div>

I already tried many options like
driver.findElement(By.xpath("//input[@id='projectName']//input[@type='text']")).sendKeys("test");

But its not working.
6 years ago