Generation

generate functionWed, 10 May 2023

Find out the elements that are not displayed in the html file

def get_missing_elements(driver): web_elements = driver.find_elements_by_xpath("//*") html_elements = driver.page_source for element in web_elements: html_elements = html_elements.replace(element.get_attribute('outerHTML'), '') print(html_elements) return html_elements

Questions about programming?Chat with your personal AI assistant