Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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:

It is sorta covered in the JavaRanch Style Guide.
subject: Problems with xpath and selenium
Similar Threads
Java XHTML DOM: Exception in getElementById with XPath
java.lang.NoClassDefFoundError: org/dom4j/DocumentException - error encontered
Junit4+Eclipse+Selenium RC- Test class should have exactly one public zero-argument constructor
Script for an email address that is already registered in the database
selenium code for ahref