SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

element not find when value contains html entities #5626

Open lukeis opened 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 5626

Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Not found right answer there (or maybe I did wrong search).

What steps will reproduce the problem?

1. view test_first_second.html (reduced case)
2. in Selenium IDE insert command >verifyElementPresent //input[@value="First"]< and
click Find bt - all OK, found First bt, yellow flash
3. modify to >verifyElementPresent //input[@value="Second"]< - [error] locator not
found: //input[@value="Second"]
4. >verifyElementPresent //input[@value="Second "]< (with one space) - [error] locator
not found: //input[@value="Second "]
5. >verifyElementPresent //input[@value="Second&nbsp;"]< - [error] locator not found:
//input[@value="Second&nbsp;"]
6. >verifyElementPresent //input[@value="Third     "]< ( w/ 5 spaces - all OK, found
Third bt, yellow flash

What is the expected output? What do you see instead?
Expected finding element Second one or another way, now there isn't possibility to
find such element.

Selenium version: Selenium IDE 2.0.0
OS: Ubuntu 12.04 LTS updated
Browser: Mozilla Firefox
Browser version: 20.0 canonical 1.0

Reduced case test_first_second.html attached. Tested on type="button" and type="text",
the same results.
test case 1st-2nd-3rd.selcase attached, too.

Regards
Pietro

Reported by zio.pietro.53 on 2013-05-10 14:25:54


lukeis commented 8 years ago

Reported by barancev on 2013-05-10 19:33:47

lukeis commented 8 years ago
what is the exact benefit of verifyElementPresent command, plz reply in brief?

Reported by rrgaikwad21 on 2014-10-04 08:41:32

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:45:12