gpt4 book ai didi

python - 试图选择一个复选框但没有被选中

转载 作者:行者123 更新时间:2023-12-04 07:20:38 25 4
gpt4 key购买 nike

<div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable" tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-imageModel" style="display: block; z-index: 1002; outline: 0px; height: auto; width: 700px; top: 225.5px; left: 278.5px;"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span class="ui-dialog-title" id="ui-dialog-title-imageModel">ATTENTION TAX PAYERS!!!!!</span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" role="button" style="display: none;"><span class="ui-icon ui-icon-closethick">close</span></a></div><div id="imageModel" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 0px; height: 92.4px;" scrolltop="0" scrollleft="0">
<ul><li class="redFont"> Please insist on getting Form 16/16A from your Deductor downloaded only from Traces.Valid form 16/16A.<a href="http://contents.tdscpc.gov.in/images/third-party-form-26AS.png" target="_blank"><i><u> click here.</u></i></a></li></ul>
<div class="floatLeft margintop20"><input type="checkbox" id="Details" name="Details" onclick="checkModal('modalPagee')"> I agree to the usage and acceptance of Form 16 / 16A generated from TRACES</div>
<div class="floatLeft margintop20">
&nbsp;&nbsp;&nbsp;
<input value="Proceed" type="button" class="button" id="btn" disabled="disabled" onclick="goCancel()">
</div>
</div></div>
这是我正在处理的 HTML 代码,在这里我想选择复选框类型的输入元素,当我尝试将其作为 check_box = find_element_by_id("Details").click()我没有选择它。
如果需要更多细节 "https://www.incometax.gov.in/iec/foportal"请访问本网站,
当之后 login, goto -> e-file -> income_tax_returns -> view for 26ascontinue , 那么我们会得到 another window opened并且会得到一个 popup在这里 pop up我们需要 select the checkbox.

最佳答案

该详细信息在新选项卡中,您需要像下面这样切换焦点:

wait = WebDriverWait(driver, 10)
new_handle = driver.window_handles
print(len(new_handle))
driver.switch_to.window(new_handle[1])

wait.until(EC.element_to_be_clickable((By.ID, "Details"))).click()

关于python - 试图选择一个复选框但没有被选中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68524893/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com