*[task#130410,done,0.2h] Add ui test files of create struct

This commit is contained in:
sunxiaoqi
2024-10-18 08:51:41 +08:00
committed by 李阳
parent 9b10e5138a
commit 00a7addac2
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class indexPage extends page
'fstLibTitle' => '/html/body/div[1]/div/div[2]/div[1]/div[1]/div[2]/main/menu/li[1]/div/div/a',
'publishBtn' => '/html/body/div[1]/div/div[1]/div[2]/a[3]',
'fstVersion' => '//*[@id="table-api-releases"]/div[2]/div[1]/div[1]/div[2]/div[1]',
'releaseBtn' => '/html/body/div/div/div[1]/div[2]/a[2]'
'releaseBtn' => '/html/body/div/div/div[1]/div[2]/a[2]',
);
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
}
+13
View File
@@ -0,0 +1,13 @@
<?php
class structPage extends page
{
public function __construct($webdriver)
{
parent::__construct($webdriver);
$xpath = array(
'createStructBtn' => '/html/body/div[1]/div/div[1]/div[2]/a',
'fstStructName' => '/html/body/div[1]/div/div[2]/div/div/div[2]/div[1]/div/div[3]/div'
);
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
}
}