2013-08-01から1ヶ月間の記事一覧

Selenium(WebDriver)でテーブルの行数を取得する

Selenium(WebDriver)でテーブルの行数を取得する方法 findElementでテーブルを指定し、そこから[tagName]で[tr]を検索し、サイズを取得する driver.findElement(By.xpath("html/body/div/section/div/div[2]/table/tbody")).findElements(By.tagName("tr")…