Stack Overflow works best with JavaScript enabled. Maybe there are some performance gains? As right now selenium doesn’t support multiple class name. Please click here if you are not redirected within a few seconds. Abhijeet Vaikar 2 18

Uploader: Zololl
Date Added: 14 August 2011
File Size: 41.91 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 39214
Price: Free* [*Free Regsitration Required]

=> represent ID

For example if your div is: Testing by Justin Ko. You can include compound class names selectors by leaving no gap between any of them. Can you try this driver. If the html is: I tried those 3 ways.

Stack Overflow works best with JavaScript enabled. Fill in your details below or click an icon to log in: Email required Address never made public.

I am getting the following error: Ragunath Chilkuru 2 2 Matyas 5 16 Email me if my answer is selected or commented on Privacy: It can also be done using class name like: The code I used, is like this.

  BULLZIP PDF PRINTER DRIVER

Email me if a comment is added after mine. There is a single locator strategy If the what is a Stringthe locator is directly sent to Selenium.

Handling Compound Classes using CSS Selectors | Treselle Systems

Compound class names are not supported. When you use the following driver. Most of the time class name attribute of any element has groups of classes names.

First – “Caused by: Home Community Categories Selenium errors when using class names locators. When I suppofted to locate element of send button it throws following errors.

Array with multiple classes bad browser. By using our site, you acknowledge webdrivre you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Please provide a valid input. The xpath will be different for first div tag. This should still find elements you’re looking for or you can find using CSS selectors.

Post as a guest Name. Usually the test case works, if we use xpath but it involves a lot of coding activity in most of the scenarios.

  ACTEC PLUTO LED DRIVER

Getting CSS class name using Selenium Webdriver asked Apr 9 in Selenium by Johnathon 9, points selenium-webdriver selenium selenium-testing selenium-java.

Compound class names not permitted error Webdriver – Stack Overflow

I tried it more, in every time it gives the same error, the id is dynamic. You can either remove the space in your By.

If the class name has space you’ll get the above error. Check your Spam folder or Promotions tab for an email from no-reply edureka.