2011-12-14から1日間の記事一覧

Selenium2 PageFactory の紹介

PageObject パターンを楽に実現するために、PageFactory というクラスがあります。 PageFactory - selenium - Description of the PageFactory in the WebDriver support library. - Browser automation framework - Google Project Hosting PageObject クラ…

Selenium2 で wait 処理

サーバーからの戻りを待つ必要がある時等に メモ:WebDriverWait を使おう Selenium 2で非同期処理を待機する5つの方法 - CODESCRIBBLE

Selenium2 のロケーター(By) ってチェーン出来たのね

ByChained というのがあるようです。 ... <ul id="drink"> <li>珈琲</li> <li>緑茶</li> <li>牛乳</li> </ul> <ul id="food"> <li>パン</li> <li>米</li> </ul> ... こんな HTML で、2個めの ul 内の li を取りたいときに、こんな感じで書いてました。 WebElement food = driver.findElement(By.id("food")); if (food == null) { return Collectio…