LoginSignup
13
11

More than 5 years have passed since last update.

Selenium2(Ruby)でinput要素の値を取得する方法

Posted at

input要素に入力されてるテキストを取得する方法。

sample
@driver.find_element(:id, "input").attribute("value")

(つい element.text とか element.value ってやりたくなるけど違う)

13
11
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
13
11