public function select_value($value) { $this->get_next_element("//option[@value=" . WebDriver::QuoteXPath($value) . "]")->select(); }
/** * @dataProvider data */ public function test($text) { $xml = simplexml_load_string('<tag>' . $text . '</tag>'); $result = $xml->xpath('//tag[text()=' . WebDriver::QuoteXPath($text) . ']'); $this->assertEquals(count($result), 1); }