Lines Matching defs:frame
11 * Used to locate a given frame or window for RemoteWebDriver.
41 * @param WebDriverElement|null|int|string $frame The WebDriverElement, the id or the name of the frame.
46 public function frame($frame)
49 if ($frame instanceof WebDriverElement) {
50 $id = [JsonWireCompat::WEB_DRIVER_ELEMENT_IDENTIFIER => $frame->getID()];
51 } elseif ($frame === null) {
53 } elseif (is_int($frame)) {
54 $id = $frame;
57 'In W3C compliance mode frame must be either instance of WebDriverElement, integer or null'
61 if ($frame instanceof WebDriverElement) {
62 $id = ['ELEMENT' => $frame->getID()];
63 } elseif ($frame === null) {
65 } elseif (is_int($frame)) {
66 $id = $frame;
68 $id = (string) $frame;
81 * @return RemoteWebDriver This driver focused on the parent frame