LoginSignup
5
5

More than 5 years have passed since last update.

新しいSelenium IDEでeval

Posted at

背景

新しいSelenium IDEでevalがなくて困ってると言う話を聞いたので、調べてみたところ代わりが即見つかったのでメモっておく。

使用したSelenium IDE

やり方

  • execute script / execute async scriptを使う

設定例

  • randomで出した数字を出力してみる
Command Target Value
execute script return Math.random(); var1
echo ${var1}

ログ

Running 'Untitled'
1.executeScript on return Math.random(); with value var1... OK
echo: 0.2338915770602541

5
5
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
5
5