* [task#129848,doing,0.5h,3h] Add xpath.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
class testtaskPage extends page
|
||||
{
|
||||
public function __construct($webdriver)
|
||||
{
|
||||
parent::__construct($webdriver);
|
||||
$xpath = array(
|
||||
'total' => "//*[@id='taskTable']/div[3]/div[2]/strong[1]",
|
||||
'waiting' => "//*[@id='taskTable']/div[3]/div[2]/strong[2]",
|
||||
'doing' => "//*[@id='taskTable']/div[3]/div[2]/strong[3]",
|
||||
'blocked' => "//*[@id='taskTable']/div[3]/div[2]/strong[4]",
|
||||
'done' => "//*[@id='taskTable']/div[3]/div[2]/strong[5]"
|
||||
);
|
||||
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user