26 lines
1.2 KiB
PHP
Executable file
26 lines
1.2 KiB
PHP
Executable file
<?php
|
|
class browsePage extends page
|
|
{
|
|
public function __construct($webdriver)
|
|
{
|
|
parent::__construct($webdriver);
|
|
$xpath = array(
|
|
'caseListID' => "//a[text()='ID']",
|
|
'caseName' => "(//div[@data-col='title']//a[@data-app='qa'])[1]",
|
|
'caseNameView' => "(//div[@id='mainContent']//span[text()])[3]",
|
|
'review' => "(//div[@data-row='case_1']//a[@data-toggle='modal'])[1]",
|
|
'comment' => "//zen-editor[@menubar-mode='compact']",
|
|
'needReview' => "(//form/div//button[@type='submit'])[2]",
|
|
'caseAllLabel' => "(//div[@id='mainContent']//div[@id='testcases_table']//label)[last()]",
|
|
'save' => "//button[@type='submit']",
|
|
'exportMenu' => "//button[@type='button' and contains(@zui-toggle-dropdown,'export')]/i",
|
|
'exportCaseButton' => "//menu/li/a[contains(@href,'=export&')]",
|
|
'automation' => "//a[contains(@href,'automation')]",
|
|
'batchEdit' => "//span[text()='编辑']",
|
|
'onlyScene' => "//*[@id='featureBar']/menu/li[7]/a"
|
|
);
|
|
|
|
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
|
|
}
|
|
}
|