無効な要素状態例外の取得

I am trying to clear text from <div> section
using XPath using the below line.

Clear Element Text    xpath=//*[@id="intro-overlay"]/div

I am getting below Error:

InvalidElementStateException: Message: invalid element state:
Element must be user-editable in order to clear it.

Can anyone please help me how to fix this.

ベストアンサー

問題は間違った要素に対してアクションを実行していることです。

<div> tag defines a division or a
section in an HTML document. The element is often used as a
container for other HTML elements to style them with CSS or to perform certain tasks with
JavaScript.

The clear command works on textbox
(<input>) or textarea. So make sure you have
located the correct textbox for clearing the text

返信を残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です