Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンをクリックするために、セレンでphantomjsを使用しています。残念ながら、そのボタンは無効になっており、実際のブラウザでマウスオーバー/クリック イベントが発生した場合にのみ有効になります。PhantomJS でそれをシミュレートする方法はありますか?
ActionChains を試しましたが、まだ機能しません (ボタンは無効のままです):
ActionChains(driver).move_to_element(button).perform()
問題は PhantomJS ではなく、アクションにあると思います。アクションを使用するときは、すべてのアクションをリンクしてからアクションを実行する必要があります。この場合、次のようになります。
ActionChains(driver).move_to_element(button).click(button).perform();