public function deleteLevel($name) { $this->searchFor($name); $this->driver->findElement(By::name("checkall-toggle"))->click(); $this->clickButton('toolbar-delete'); $this->driver->waitForElementUntilIsPresent(By::xPath($this->waitForXpath)); $this->searchFor(); }
public function delete($name) { $this->searchFor($name); $el = $this->driver->findElement(By::name("checkall-toggle")); while (!$el->isSelected()) { $el->click(); } $this->driver->findElement(By::id("filter_search"))->click(); sleep(2); $this->clickButton('toolbar-delete'); $this->driver->waitForElementUntilIsPresent(By::xPath($this->waitForXpath)); $this->searchFor(); }