Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

org.openqa.selenium.NoSuchElementException: Compound class names not permitted

 
Ranch Hand
Posts: 459
6
Netbeans IDE Oracle Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello testers,

I discovered HTMLUnit and am very Happy.

For the script:



org.openqa.selenium.NoSuchElementException: Compound class names not permitted
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html

The exception is at line:

WebElement tooltipElem = driver.findElement(By
.className("Va(m) W(a)! Fz(22px) Ycon YconSettings C(#32007f) Lts(n) M(-10px) P(10px)"));

How to write className so avoid this exception?

Thanks a lot,

[HENRY: Password removed]
 
Dana Ucaed
Ranch Hand
Posts: 459
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I discovered Page Object Model design pattern and I escape from such exception.

 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic