Parsing the HTML content using compound class using selenium python
问题 I am having a display button in my GUI that shows the connection status (Button with Green check means connection is established and with Red cross means no connection) I have to check the status using my code. I am parsing the content of that particular title-bar class name (container-fluid). And from this, I am parsing the explicit content of that display button. elem = driver.find_element_by_class_name("container-fluid") a= elem.get_attribute("outerHTML") b= a.split("powerOn icon-ok-sign")