New answers tagged

0

I found the answer! You can use "/li[1]" at the end for picking the first item on the list. If you want the second item, then it would be "/li[2]" and so forth. My example: search = driver.find_element_by_xpath("//ul[@class='Polaris-ResourceList_r589e']/li[" + str(variant[x]) + "]").click() In this example, I am using ...


0

Fixed with: browser.find_element_by_css_selector(".fr66n > button:nth-child(1) > div:nth-child(1) > span:nth-child(1) > svg:nth-child(1)").get_attribute("aria-label")


Top 50 recent answers are included