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(); }
public function prepareLinkedObjects() { $object_type = (yield wait_for($ent->genObjectType())); $config = (yield wait_for($object_type->genPropertyConfig())); $urls = array(); foreach ($config->getFlatProperties(array(OGPropertyConst::TYPE_REFERENCE)) as $property) { $value = $ent->getPropertyForSelector($property->getFullyQualifiedNameXxx()); if (is_array($value)) { $urls = array_merge($urls, $value); } else { $urls[] = $value; } } $urls = array_filter($urls); (yield wait_for_result($ent->genAssociatedObjects('all-urls', $urls))); }
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(); } }