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 1 year has passed since last update.

【PAD】WebページでJavaScript関数を実行で関数を書きたい。

Posted at

WebページでJavaScript関数を実行で、関数を書きたい。

PowerAutomateDesktopを使って、DOMにアクセスしたいときWebページの要素にマウスをポイントなどでUI要素を使うことが多いかもしれませんが、私はコード書いたほうが早いなと思うときが多いです。笑
たびたび、「WebページでJavaScript関数を実行する」を使います。ただ、for of文やfetchAPIなどが使えない制約があります。
関数も、ExecuteScriptの中で書かないといけないらしく、ネットであまり情報もなかったので投稿しました。

うまくいった書き方

function ExecuteScript() 
{ 
	function test() {
		alert('test関数の中だよ!');
	}
	test();
	return;
}

他の書き方もあったら教えてください。

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?