-2
我一直在试图找到一个嵌套的按钮元素(<button class="dwnload_xls"
),并点击它,但没有这样做。有人可以帮助我吗? 我已经尝试使用以下(单独),但他们都只是给了同样的答复:无法找到使用硒webdriver按钮元素
无法找到元素
我的代码:
frame = WebDriverWait(browser, 30).until(lambda x: x.find_element_by_xpath(".//*[contains(@class, 'downloadxlsform')]//div[contains(@class,'downloadform')]//button[contains(@class, 'dwnload_xls')]"))
HTML代码: