File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes Problems with xpath and selenium Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Problems with xpath and selenium" Watch "Problems with xpath and selenium" New topic

Problems with xpath and selenium

Jessica Dias

Joined: Jul 24, 2013
Posts: 2
Hello, good morning. I'm using XPath to find an attribute of a field and be able to change this attribute.
For example, I have the last name and this field has the value Dias. I want to put another name.
This command in selenium

The exception

Thanks for the help
Doug Slavens

Joined: Sep 10, 2013
Posts: 11
What is datos? Is that a string variable? If so, then you want to build the string with the + sign like this:

I agree. Here's the link:
subject: Problems with xpath and selenium
It's not a secret anymore!