私はwatirを初めて使用し、現在アプリケーションの自動化に使用していますが、ボタンをクリックしようとすると1つのエラーが発生します。
Watirコードは次のようになります:
$browser.button(:id,"Button_one").click
ボタンのhtmlは次のようになります。
<input id="Button_one" class="ButtonA ButtonB" type="submit" value="Continue">.
表示されるエラーは次のとおりです。
WIN32OLERuntimeError: (in OLE method `focus': )
OLE error code:800A083E in htmlfile
Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
HRESULT error code:0x80020009
Exception occurred.
Ruby192/lib/--/input_elements.rb:294:in `method_missing'
Ruby192/lib/--/watir-classic/input_elements.rb:294:in `set'
ボタンが見えない、無効になっていないようですが、このエラーの原因は何ですか?plsは私にこれに対処する方法を教えてくれます...。