サクサク読めて、アプリ限定の機能も多数!
Capybaraで<a>タグのhref属性を取得するには、page.find('div#drawer a')[:href]
k_oshima のブックマーク 2015/04/16 15:16
Capybara: is it possible to get an attribute value from a css string?[Ruby][Capybara][TIPS][test][testing]Capybaraで<a>タグのhref属性を取得するには、page.find('div#drawer a')[:href]2015/04/16 15:16
Capybaraで<a>タグのhref属性を取得するには、page.find('div#drawer a')[:href]
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2015/04/16
If I've got some HTML like: <div id='drawer'><ul><li><a href='www'>description</a>... I've seen that I can get the value of href in Capybara with: page.find('div#drawer a')['href'] But is there any...
2 人がブックマーク・2 件のコメント
\ コメントが サクサク読める アプリです /
Capybaraで<a>タグのhref属性を取得するには、page.find('div#drawer a')[:href]
k_oshima のブックマーク 2015/04/16 15:16
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Capybara: is it possible to get an attribute value from a css string?
stackoverflow.com2015/04/16
If I've got some HTML like: <div id='drawer'><ul><li><a href='www'>description</a>... I've seen that I can get the value of href in Capybara with: page.find('div#drawer a')['href'] But is there any...
2 人がブックマーク・2 件のコメント
\ コメントが サクサク読める アプリです /