driver.findElement(By.id("ProjectAddress")).clear(); driver.findElement(By.id("ProjectAddress")).sendKeys("Chennai"); driver.findElement(By.xpath("//[@id='ProjectAddForm']/fieldset[4]/div/div1")).click(); Thread.sleep(5000);`
Asked
Active
Viewed 135 times
-5
-
3Where is your code? the html? what are you trying to do? what happened when you tried to do it? – Guy Mar 21 '17 at 12:07
-
Its easy to identify the issue if u share the html or some more info about the issue – SaiPawan Mar 21 '17 at 12:08
-
1driver.findElement(By.id("ProjectAddress")).clear(); driver.findElement(By.id("ProjectAddress")).sendKeys("Chennai"); driver.findElement(By.xpath("//*[@id='ProjectAddForm']/fieldset[4]/div/div[1]")).click(); Thread.sleep(5000); – Prasad Polineni Mar 21 '17 at 12:34
-
1Check the code once ? And i tried by using x path and css selector – Prasad Polineni Mar 21 '17 at 12:34
-
1@sai please tell me the solution – Prasad Polineni Mar 21 '17 at 12:39
-
is it a public website – SaiPawan Mar 21 '17 at 12:58
-
can i try on that or else can u share html code of that element after displaying the results – SaiPawan Mar 21 '17 at 12:58
-
http://getlancer.demo.agriya.com/users/login/?f=projects/add Credentials :- employer /agriya. – Prasad Polineni Mar 21 '17 at 13:03
-
After login Navigate to Post project page dude.. In that Location field i'm not able to select an autocomplete dropdown option.. – Prasad Polineni Mar 21 '17 at 13:07
-
@sai if possible tell me you email id. i'll send full source code – Prasad Polineni Mar 21 '17 at 13:08
-
saipawan.lingutla@gmail.com I dont need code i need the way of displaying the suggestions in developer tool so that i can check how to identify the element. – SaiPawan Mar 21 '17 at 13:09
-
1Spend a minute putting all the question details inside the question so people don't have to dig through all the comments to find everything. Spend another minute properly formatting your code and HTML in the question so it can be more easily read. – JeffC Mar 21 '17 at 13:12
-
@sai check your mail once – Prasad Polineni Mar 21 '17 at 13:19
-
@JeffC My question updated properly, attached images and provided code also – Prasad Polineni Mar 21 '17 at 13:19
-
Your code is not properly formatted and the images links aren't correct. Please edit them. See help for formatting advice. – JeffC Mar 21 '17 at 13:22
-
@Prasad..Will check and let u know – SaiPawan Mar 21 '17 at 13:25
-
driver.findElement(By.cssSelector("input[value='Chennai']")).click(); – SaiPawan Mar 21 '17 at 13:31
-
@sai some how is the OP trying to click on a SVG element ? – undetected Selenium Mar 21 '17 at 13:36
-
what is the error u r getting – SaiPawan Mar 21 '17 at 13:36
-
Syntax error on tokens , delete this token – Prasad Polineni Mar 21 '17 at 13:37