Esempio n. 1
0
 public function testSelectOptionOtherTag()
 {
     $node = new NodeElement('div', $this->session);
     $this->driver->expects($this->once())->method('getTagName')->with('div')->will($this->returnValue('div'));
     $this->driver->expects($this->once())->method('selectOption')->with('div', 'item1', false);
     $node->selectOption('item1');
 }
 public function testSelectOption()
 {
     $node = new NodeElement('select', $this->session);
     $this->session->getDriver()->expects($this->once())->method('selectOption')->with('select', 'item1');
     $node->selectOption('item1');
 }