0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[iMacros] element A specified by (略) was not foundエラーの解消

Last updated at Posted at 2021-03-05

事象

RECORADはできたけど、PLAYすると以下のエラーで落ちてしまう

エラー内容
element A specified by TXT****(押下したい要素) was not found, line: 5

落ちている該当行

TAG POS=1 TYPE=A ATTR=TXT:ボタン名

解決方法

スクリプトの手直し編集(画像はiMacros for Chrome)
スクリプト名を右クリック>Edit

原因1:ページのローディング時間が長かったので、このボタンを押す瞬間にまだページが読み込めていなかった

待機時間処理を追加して解決(単位:秒)

WAIT SECONDS=3

原因2:TAG POS=1 TYPE=A ATTR=TXT:ボタン名がどの要素か特定できていなかった

XPATH指定で要素を指定すると解決

TAG XPATH="/html/body/div[9]/div/div/div/div[4]/dl[2]/dd/ul/li[4]/a"

※XPATH取得方法(Chromeの場合)
①F12でデベロッパーツール起動
②赤枠の矢印マークを押下
③要素を選択
③XPATHをコピー
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?