* [task#134548,doing,0.3h,2.5h] Add xpath

This commit is contained in:
yulujie
2024-12-16 14:53:45 +08:00
committed by 李阳
parent 249d1adc76
commit ef0a2c00c6
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
class browsePage extends page
{
public function __construct($webdriver)
{
parent::__construct($webdriver);
$xpath = array(
'totalNum' => "//*[@data-id='totalStatus']/span[2]"
);
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
}
}
+1
View File
@@ -7,6 +7,7 @@ class createPage extends page
$xpath = array(
'createBuildBtn' => "//span[@class='input-group-addon']/a[@id='buildCreateLink']",
'refreshBtn' => "//span[@class='input-group-addon']/a[@class='refresh']",
'submitBtn' => "//button[@type='submit']"
);
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
}