Lines Matching refs:this

46         $this->executor = $executor;
47 $this->id = $id;
48 $this->fileDetector = new UselessFileDetector();
49 $this->isW3cCompliant = $isW3cCompliant;
59 $this->executor->execute(
61 [':id' => $this->id]
64 return $this;
68 * Click this element.
75 $this->executor->execute(
77 [':id' => $this->id]
82 // The workaround in this case is to click on a child element.
83 $this->clickChildElement($e);
86 return $this;
90 * Find the first WebDriverElement within this element using the given mechanism.
93 * search the entire document from the root, not just the children (relative context) of this current node.
94 * Use ".//" to limit your search to the children of this element.
102 $params = JsonWireCompat::getUsing($by, $this->isW3cCompliant);
103 $params[':id'] = $this->id;
105 $raw_element = $this->executor->execute(
110 return $this->newElement(JsonWireCompat::getElement($raw_element));
114 * Find all WebDriverElements within this element using the given mechanism.
117 * search the entire document from the root, not just the children (relative context) of this current node.
118 * Use ".//" to limit your search to the children of this element.
127 $params = JsonWireCompat::getUsing($by, $this->isW3cCompliant);
128 $params[':id'] = $this->id;
129 $raw_elements = $this->executor->execute(
136 $elements[] = $this->newElement(JsonWireCompat::getElement($raw_element));
148 * @return string|true|null The value of the attribute. If this is boolean attribute, return true if the element
155 ':id' => $this->id,
158 if ($this->isW3cCompliant && ($attribute_name === 'value' || $attribute_name === 'index')) {
159 $value = $this->executor->execute(DriverCommand::GET_ELEMENT_PROPERTY, $params);
174 return $this->executor->execute(DriverCommand::GET_ELEMENT_ATTRIBUTE, $params);
178 * Gets the value of a IDL JavaScript property of this element (for example `innerHTML`, `tagName` etc.).
187 if (!$this->isW3cCompliant) {
193 ':id' => $this->id,
196 return $this->executor->execute(DriverCommand::GET_ELEMENT_PROPERTY, $params);
209 ':id' => $this->id,
212 return $this->executor->execute(
225 $location = $this->executor->execute(
227 [':id' => $this->id]
241 if ($this->isW3cCompliant) {
249 $result = $this->executor->execute(DriverCommand::EXECUTE_SCRIPT, [
251 'args' => [[JsonWireCompat::WEB_DRIVER_ELEMENT_IDENTIFIER => $this->id]],
255 $location = $this->executor->execute(
257 [':id' => $this->id]
269 $element = $this;
278 $auxiliary = $this->getID();
295 $size = $this->executor->execute(
297 [':id' => $this->id]
304 * Get the (lowercase) tag name of this element.
311 // until this issue is not resolved :
314 return mb_strtolower($this->executor->execute(
316 [':id' => $this->id]
321 * Get the visible (i.e. not hidden by CSS) innerText of this element,
324 * @return string The visible innerText of this element.
328 return $this->executor->execute(
330 [':id' => $this->id]
335 * Is this element displayed or not? This method avoids the problem of having
342 return $this->executor->execute(
344 [':id' => $this->id]
356 return $this->executor->execute(
358 [':id' => $this->id]
363 * Determine whether this element is selected or not.
369 return $this->executor->execute(
371 [':id' => $this->id]
383 $local_file = $this->fileDetector->getLocalFile($value);
387 if ($this->isW3cCompliant) {
394 ':id' => $this->id,
400 ':id' => $this->id,
404 if ($this->isW3cCompliant) {
409 $fileName = $this->upload($local_file);
416 ':id' => $this->id,
420 'value' => WebDriverKeys::encode($this->upload($local_file)),
421 ':id' => $this->id,
427 $this->executor->execute(DriverCommand::SEND_KEYS_TO_ELEMENT, $param);
430 return $this;
449 $this->fileDetector = $detector;
451 return $this;
455 * If this current element is a form, or an element within a form, then this will be submitted to the remote server.
461 if ($this->isW3cCompliant) {
462 // Submit method cannot be called directly in case an input of this form is named "submit".
463 // We use this polyfill to trigger 'submit' event using form.dispatchEvent().
466 while (form.nodeName !== "FORM" && form.parentNode) { // find the parent form of this element
477 $this->executor->execute(DriverCommand::EXECUTE_SCRIPT, [
479 'args' => [[JsonWireCompat::WEB_DRIVER_ELEMENT_IDENTIFIER => $this->id]],
482 return $this;
485 $this->executor->execute(
487 [':id' => $this->id]
490 return $this;
500 return $this->id;
512 $this->executor->execute(
514 [':id' => $this->id]
539 if ($this->isW3cCompliant) {
540 return $this->getID() === $other->getID();
543 return $this->executor->execute(DriverCommand::ELEMENT_EQUALS, [
544 ':id' => $this->id,
564 $children = $this->findElements(WebDriverBy::xpath('./*'));
567 // Note: This does not use $child->click() as this would cause recursion into all children.
569 $this->executor->execute(
576 // Ignore the ElementNotInteractableException exception on this node. Try the next child instead.
592 return new static($this->executor, $id, $this->isW3cCompliant);
609 $temp_zip_path = $this->createTemporaryZipArchive($local_file);
611 $remote_path = $this->executor->execute(