擅长:python、mysql、java
<p>我可以使用<code>driver.execute_script("document.getElementById('txtValor4').value = 123.45")</code>来绕过它,将值传递到文本框中,因此按钮没有<code>disabled</code>,我可以按<code>Continue</code>按钮。在</p>
<p>即使绕过这个,结果也不是预期的!我输入的值应该被某种兴趣所修正。这个值没有被修正,但是没有被修正。在</p>
<p>今天,询问程序的用户告诉我,每次我更改<code>textbox</code>内的值,我必须按<code>Calculate</code>按钮。在</p>
<p>因此,我可以使用以下方法来解决我的问题:</p>
<pre><code>b = driver.find_element_by_xpath('//input[@id="txtValor4"]')
b.clear()
b.send_keys('123.45')
driver.find_element_by_xpath('//input[@id="btnCalcular4"]').click()
driver.find_element_by_xpath('//input[@id="btnContinuar4"]').click()
</code></pre>
<p>通过这种方式,税值通过利息修正,网站生成<code>.pdf</code>与我期望的值完全一致。在</p>
<p>非常感谢所有花时间和精力来帮助我的人。在</p>