*[task#146146,doing,0.5h,3h] modify code
This commit is contained in:
@@ -60,7 +60,10 @@ class batchCreateStory extends tester
|
||||
}
|
||||
else
|
||||
{
|
||||
$form->dom->search(array("{$this->lang->story->name},=,{$story->name}"));
|
||||
$form->dom->searchBtn->click();
|
||||
$form->wait(1);
|
||||
$form->dom->value1->setValue($story->name);
|
||||
$form->dom->searchButton->click();
|
||||
$form->wait(2);
|
||||
return ($form->dom->firstStory->getText() == $story->name)
|
||||
? $this->success('批量创建目标成功')
|
||||
|
||||
@@ -13,7 +13,9 @@ class batchCreatePage extends page
|
||||
'epicSave' => "//*[@id='zin_epic_batchcreate_formBatch']/div[2]/button[1]",
|
||||
/*运营管理界面*/
|
||||
'reviewerTip' => "//*[@id='reviewer[1][]Tip']",
|
||||
'firstStory' => "//*[@id='stories']/div[2]/div[1]/div/div[2]/div/a"
|
||||
'firstStory' => "//*[@id='stories']/div[2]/div[1]/div/div[2]/div/a",
|
||||
'searchBtn' => "//*[@id='featureBar']/menu/li[7]/button",
|
||||
'searchButton' => "//*[@id='mainContentCell']/div[1]/div/form/div[2]/button[1]"
|
||||
);
|
||||
$this->dom->xpath = array_merge($this->dom->xpath, $xpath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user