0

次のコードを使用して、機能しない JavaScript を使用してフォーム検証を無効にしようとしています:

     ((JavascriptExecutor) webDriver).executeScript("document.getElementById('node-event-form').noValidate = true;");

コマンドdocument.getElementById('node-event-form').noValidate = true;はコンソールで機能しますが。Chrome と Firefox の最新バージョンでこれを確認しました。

私が間違っている可能性があることを誰かが知っていますか?

4

0 に答える 0