* [task#129848,doing,0.5h,3h] Add xpath.

This commit is contained in:
yulujie
2024-10-10 14:45:18 +08:00
committed by 李阳
parent 120705546b
commit 668d2249be
@@ -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);
}
}