示例#1
0
 /**
  * @return Tag
  */
 public function edit()
 {
     $menu = $this->test->byXpath("//td[contains(@class,'action-cell')]//a[contains(., '...')]");
     $this->test->moveto($menu);
     $this->test->byXpath("//td[contains(@class,'action-cell')]//a[@title= 'Edit']")->click();
     $this->waitPageToLoad();
     $this->waitForAjax();
     $tag = new Tag($this->test);
     return $tag->init();
 }
示例#2
0
 /**
  * @return Tag
  */
 public function edit()
 {
     $action = $this->test->byXpath("//td[@class='action-cell']//a[contains(., '...')]");
     // hover will show menu, 1st click - will hide, 2nd - will show again
     $action->click();
     $action->click();
     $this->waitForAjax();
     $this->test->byXpath("//td[@class='action-cell']//a[@title= 'Edit']")->click();
     $this->waitPageToLoad();
     $this->waitForAjax();
     $tag = new Tag($this->test);
     return $tag->init();
 }