質問

しているHTMLのようになります。

<input custom_attribute="so cool" type="text" />

うにテキストを入力での使用 Watir.

役に立ちましたか?

解決 2

browser.text_field(:xpath , "//input[@custom_attribute='so cool']/").set("even more cool")

資料

他のヒント

フィリピンの答えはワチール-webdriverを持つ私の仕事のために動作しませんでした。

私は、しかし、CSSセレクタで仕事をする方法を見つけました。

browser.element(:css, "input[custom_attribute='so cool']").send_keys("the coolest")
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top