*[task#148502,done,1h] Add xpath.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
class viewPage extends page
|
||||
{
|
||||
public function __construct($webdriver)
|
||||
{
|
||||
parent::__construct($webdriver);
|
||||
$xpath = array(
|
||||
'submitBtn' => "//button[@type='submit']",
|
||||
/* 开始任务弹窗 */
|
||||
'assignedToDelBtn' => "//*[@name='assignedTo']/../button", //指派给组件中的删除按钮
|
||||
'modalText' => "//*[@class='modal-body']", //总计消耗和预计剩余都为空或0时弹窗提示
|
||||
'confirmBtn' => "//*[@class='modal-footer']//button[1]",
|
||||
|
||||
);
|
||||
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user