How to Expand and Collapse using webdriver ?

How to Expand and Collapse using webdriver ?

I am automating through Keyword Framework, Please let me know how to expand and collapse the functionality. Refer attached file. Through classname it is not working as I am getting compound class error. I need to click on + icon and select the child values.

Default Asked on February 28, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Compund names can be handles by using a . instead of the space between class names. Therefore you class name will become
    closed.expandable. It seems that you are using chrome, I would suggest that you simple copy the CSS path of the element and do a click using that. Try the <a> or div if <li> element doesnt work.

    Thanks
    Virender

    Professor Answered on February 28, 2015.

    Thanks

    on March 4, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.