Fill in your details below or click an icon to log in: Compound class names, while on the list to be deprecated in v7. Your comment on this question: I have a method to count the number of elements in divs and to return their number. Thats why this throws an error:

Uploader: Kasar
Date Added: 22 December 2010
File Size: 5.96 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 81653
Price: Free* [*Free Regsitration Required]

Thanks Jim, the james source is full with elements with spaces in the locators, I just want to kill the devs: You are commenting using your Twitter account. By using our site, you acknowledge that you have read eupported understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Your email address will only be used for sending these notifications. This blog talks about handling compound classes in Selenium Webdriver using css selector.

Abhijeet Vaikar 2 18 As right now selenium doesn’t support multiple class name. Removing the spaces in the compound class name and using the class name locator. For documentation on this error, please visit: Replacing the spaces with ‘. The following error occurred: Please enter a valid emailid.


Compound class names not permitted error Webdriver – Stack Overflow

It can also be done using class name like: Unable to locate element: By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policycompoumd that your continued use of the website is subject zupported these policies.

Leave a Reply Cancel reply Enter your comment here The question is, where is this exception coming from? I tried those 3 ways. In this blog we have seen the main advantage of using css in IE.

=> represent ID

You can use driver. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site the association bonus does not count.

Thank you for your valuable comment. Email Required, but never shown. You are commenting dupported your WordPress. The UI view is: But class is same in every message window.


What are the different Locators that can be used to access Web Elements? Can you try this driver.

Handling Compound Classes using CSS Selectors | Treselle Systems

It was not until I noticed that the question used element instead of div that I was able to reproduce the exception:. Solution Using a simple page: By continuing to use this website, you cmpound to their use. Compound class names not permitted error Webdriver Ask Question. Sign up compounnd Email and Password. Sign up to get answers to your questions via experts on Edureka Community. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

This site uses cookies.