Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Prose
UsingBrowser
select
Prose\UsingBrowser::select PHP Method
UsingBrowser Class Documentation
Show file
Open project: datasift/storyplayer
select()
public
method
choose an option from a
box public select ( string $label ) : SingleElementAction $label string the human-readable text of the option to select return DataSift\Storyplayer\BrowserLib\SingleElementAction public function select($label) { $action = function ($element, $elementName, $elementDesc) use($label) { // what are we doing? $log = usingLog()->startAction("choose option '{$label}' from {$elementDesc} '{$elementName}'"); // get the option to select $option = $element->getElement('xpath', 'option[normalize-space(text()) = "' . $label . '" ]'); // select it $option->click(); // all done $log->endAction(); }; return new SingleElementAction($action, "select", $this->topElement); } UsingBrowser check clear click closeCurrentWindow gotoPage initActions resizeCurrentWindow select setHttpBasicAuthForHost switchToIframe switchToMainFrame switchToWindow type waitForOverlay waitForTitle waitForTitles Top Functions | Top Classes | Documentation | Privacy Policy | Advertise with us PHP | C# (CSharp) | Java | Golang | C++ (Cpp) | Python | JavaScript | TypeScript EN | RU | DE | FR | ES | PT | IT | JP | ZH | KO