ページ上のタグを見つけようとしていますが、これまで名前/id/xpath でタグを見つけることができませんでした。これは私がxpathで見つけようとしたものです:
db = driver.find_element_by_xpath("/html/body/form")
そしてまた
driver.find_element_by_xpath("//form[@id='formControl']")
これらは両方ともエラーを返します。
selenium.common.exceptions.NoSuchElementException: Message: u'Unable to locate element:
ページ上にフォームが見つからないかのようです。修正方法のアイデアはありますか?
ページの html の先頭は次のとおりです。
<html>
<body id="bodyControl" class="PersonalizationPage ContentPage Layout_PageUsesRegions" onunload="closeTimeoutWarningPopupWindow();return true;" onload="return __MasterOnLoad();" onresize="return __MasterOnResize();">
<form name="formControl" method="post" action="default.wl?appflag=65.14&bhcp=1&MT=208&rs=LAWS2.0&strRecreate=no&sv=Split&transfertoken=10281204301250d0dbca913e4aa6887c7d425f4ede9c&vr=2.0" id="formControl" target="_top">