예제 #1
0
 public function clickRecordEditBtn($i = 1)
 {
     $this->waitForList();
     find_element_ok(".result tbody tr:nth-child({$i}) input.record-edit-btn")->click();
     wait_for('.crud-edit');
     wait_for('div[id^=record-div]');
     wait_for_tinymce();
     wait();
 }
예제 #2
0
 protected function login($transferTo = null)
 {
     $this->gotoLoginPage();
     find_element_ok('input[name=account]')->value('admin');
     find_element_ok('input[name=password]')->value('admin');
     find_element_ok('.submit')->click();
     // ok( ! find_element('.message.error') , 'login error' );
     wait_for('#aimMenuStart');
     if ($transferTo) {
         $url = @$this->urlOf[$transferTo];
         $a = find_element_ok("#adminAimMenu a[href=\"{$url}\"]");
         if (!$a) {
             throw new Exception("Menu link {$transferTo} not found.");
         }
         $a->click();
     }
 }