What are the different Locators that can be used to access Web Elements? Did you try to search for the id “: 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. Your email address will only be used for sending these notifications. If your class name includes a space, WebDriver will see it as a “compound selector”. As Selenium does not support compound classes, an exception will occur.
|Date Added:||7 January 2008|
|File Size:||59.46 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Compound class names not permitted Ask Question. When you use the following driver. The following error occurred: Email me at this address if a comment is added after mine: The above code doesn’t take into account adding the email address of the recipient and the message body.
This solution worked for me. Compound class names not permitted error Webdriver Ask Question.
java – Compound class names are not supported error in WebDriver – Stack Overflow
errors when using class names locators. Getting compound classes are not supported | edureka! Forum
=> represent ID
Only element fails because it is the only way to have single locator strategy. This blog talks about handling compound classes in Selenium Webdriver using css selector.
As right now selenium doesn’t support multiple class name. Getting CSS class name using Selenium Webdriver asked Apr 9 in Selenium by Johnathon supportee, points selenium-webdriver selenium selenium-testing selenium-java. The locator is ade supported by Selenium — eg: Removing the spaces in the compound class name and using the class name locator. You can simply get rid of the issue by using Id, CSS, Xpath, regular expression or any other element finder method.
Asit Tripathy 9. Email me if a comment is added after mine. It can also be done using class name like: I am unsure why we handle the webdriver locators differently. Ragunath Chilkuru 2 2 You are commenting using your Facebook account.
The conclusion I reached is that some of the solutions that worked for java above either don’t work on my machine or don’t work for Ruby at all although I am not sure which is the case. Usually the test case works, if we use xpath but it involves a lot of coding activity in most of the scenarios.