How to Click on Collapsible Content?

41 views
Skip to first unread message

ferdie

unread,
Mar 17, 2021, 2:08:06 AM3/17/21
to Selenium Users

Hey ya'll, new to this and was wondering how do you expand collapsible content? (I am using Python as reference).

This is the website I am trying to automate.

I am trying to expand this to look like this so I can filter the listings.

This is the section of the html for reference.

I thought about doing the following and iterate and click each target, but I think my logic isn't working: targets = driver.find_elements_by_xpath("//div[@class='filter-top']/preceding-sibling::div[@class='instant-search-collapsible_collapsed']"

Any help is appreciated, thanks!

Reply all
Reply to author
Forward
0 new messages