| @@ -234,7 +234,6 @@ discard block | ||
| 234 | 234 | |
| 235 | 235 | /** | 
| 236 | 236 | * Get the text of the currently displayed alert / confirm /prompt dialog | 
| 237 | - * @param bool $confirm | |
| 238 | 237 | */ | 
| 239 | 238 | public function alert_text() | 
| 240 | 239 |  	{ | 
| @@ -252,6 +251,9 @@ discard block | ||
| 252 | 251 | |
| 253 | 252 | /** | 
| 254 | 253 | * Move the mouse to a certain element | 
| 254 | + * @param string $id | |
| 255 | + * @param integer $x | |
| 256 | + * @param integer $y | |
| 255 | 257 | */ | 
| 256 | 258 | public function move_to($id = NULL, $x = NULL, $y = NULL) | 
| 257 | 259 |  	{ | 
| @@ -269,6 +271,8 @@ discard block | ||
| 269 | 271 | |
| 270 | 272 | /** | 
| 271 | 273 | * execute Javascript | 
| 274 | + * @param string $id | |
| 275 | + * @param string $script | |
| 272 | 276 | */ | 
| 273 | 277 | public function execute($id, $script) | 
| 274 | 278 |  	{ | 
| @@ -288,7 +292,6 @@ discard block | ||
| 288 | 292 | * | 
| 289 | 293 | * @param string $name | 
| 290 | 294 | * @param string $value | 
| 291 | - * @param integer $expires | |
| 292 | 295 | */ | 
| 293 | 296 | public function cookie($name, $value, array $parameters = array()) | 
| 294 | 297 |  	{ | 
| @@ -329,6 +332,7 @@ discard block | ||
| 329 | 332 | /** | 
| 330 | 333 | * Extract implicit query from URI | 
| 331 | 334 | * | 
| 335 | + * @param string $uri | |
| 332 | 336 | * @return array | 
| 333 | 337 | */ | 
| 334 | 338 | public static function extract_query_from_uri($uri) | 
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | /** | 
| 63 | 63 | * Getter / Setter of the current phantomjs server url | 
| 64 | 64 | * @param string $server | 
| 65 | - * @return string|Driver_Phantomjs_Connection | |
| 65 | + * @return string | |
| 66 | 66 | */ | 
| 67 | 67 | public function server($server = NULL) | 
| 68 | 68 |  	{ | 
| @@ -272,7 +272,6 @@ | ||
| 272 | 272 | |
| 273 | 273 | /** | 
| 274 | 274 | * Get the text of the currently displayed alert / confirm /prompt dialog | 
| 275 | - * @param bool $confirm | |
| 276 | 275 | */ | 
| 277 | 276 | public function alert_text() | 
| 278 | 277 |  	{ | 
| @@ -18,6 +18,9 @@ discard block | ||
| 18 | 18 | */ | 
| 19 | 19 | protected $_xpath; | 
| 20 | 20 | |
| 21 | + /** | |
| 22 | + * @param Driver_Simple_Xpath $xpath | |
| 23 | + */ | |
| 21 | 24 | function __construct($xpath) | 
| 22 | 25 |  	{ | 
| 23 | 26 | $this->xpath = $xpath; | 
| @@ -54,7 +57,7 @@ discard block | ||
| 54 | 57 | /** | 
| 55 | 58 | * Set the value of a DOMElement, identified by an xpath, calls one of the stter methods | 
| 56 | 59 | * @param string $xpath | 
| 57 | - * @param mixed $value | |
| 60 | + * @param string $value | |
| 58 | 61 | */ | 
| 59 | 62 | public function set_value($xpath, $value) | 
| 60 | 63 |  	{ | 
| @@ -88,7 +91,7 @@ discard block | ||
| 88 | 91 | |
| 89 | 92 | /** | 
| 90 | 93 | * Set the value of a checkbos DOMNode | 
| 91 | - * @param DOMNode $checkbox | |
| 94 | + * @param \DOMNode $checkbox | |
| 92 | 95 | * @param boolean $value | 
| 93 | 96 | */ | 
| 94 | 97 | public function set_value_checkbox(\DOMNode $checkbox, $value) | 
| @@ -105,7 +108,7 @@ discard block | ||
| 105 | 108 | |
| 106 | 109 | /** | 
| 107 | 110 | * Set the value of a radio DOMNode, uncheck any other radio input in the same group | 
| 108 | - * @param DOMNode $radio | |
| 111 | + * @param \DOMNode $radio | |
| 109 | 112 | * @param boolean $value | 
| 110 | 113 | */ | 
| 111 | 114 | public function set_value_radio(\DOMNode $radio, $value) | 
| @@ -123,7 +126,7 @@ discard block | ||
| 123 | 126 | |
| 124 | 127 | /** | 
| 125 | 128 | * Set the value of a normal input | 
| 126 | - * @param DOMNode $input | |
| 129 | + * @param \DOMNode $input | |
| 127 | 130 | * @param string $value | 
| 128 | 131 | */ | 
| 129 | 132 | public function set_value_input(\DOMNode $input, $value) | 
| @@ -133,7 +136,7 @@ discard block | ||
| 133 | 136 | |
| 134 | 137 | /** | 
| 135 | 138 | * Set the value of a normal textarea | 
| 136 | - * @param DOMNode $textarea | |
| 139 | + * @param \DOMNode $textarea | |
| 137 | 140 | * @param string $value | 
| 138 | 141 | */ | 
| 139 | 142 | public function set_value_textarea(\DOMNode $textarea, $value) | 
| @@ -143,7 +146,7 @@ discard block | ||
| 143 | 146 | |
| 144 | 147 | /** | 
| 145 | 148 | * Set the value of an option DOMNode, unselect other options in this select, if it is not multiple | 
| 146 | - * @param DOMNode $option | |
| 149 | + * @param \DOMNode $option | |
| 147 | 150 | * @param boolean $value | 
| 148 | 151 | */ | 
| 149 | 152 | public function set_value_option(\DOMNode $option, $value) | 
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | * Find a DOMElement wit ha given xpath expression, optionally provide parent DOMNode to use as context. | 
| 17 | 17 | * @param string $expression | 
| 18 | 18 | * @param DOMNode $contextnode | 
| 19 | - * @return DOMNode | |
| 19 | + * @return \DOMNode | |
| 20 | 20 | * @throws Exception_Xpath If no elements were found | 
| 21 | 21 | */ | 
| 22 | 22 | public function find($expression, $contextnode = NULL) | 
| @@ -2,11 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Openbuildings\Spiderling; | 
| 4 | 4 | |
| 5 | -use Openbuildings\EnvironmentBackup\Environment; | |
| 6 | -use Openbuildings\EnvironmentBackup\Environment_Group_Globals; | |
| 7 | -use Openbuildings\EnvironmentBackup\Environment_Group_Server; | |
| 8 | -use Openbuildings\EnvironmentBackup\Environment_Group_Static; | |
| 9 | - | |
| 10 | 5 | /** | 
| 11 | 6 | * Use Curl to load urls. | 
| 12 | 7 | * In memory. | 
| @@ -12,6 +12,9 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 |  class Exception extends \Exception { | 
| 14 | 14 | |
| 15 | + /** | |
| 16 | + * @param string $message | |
| 17 | + */ | |
| 15 | 18 | public function __construct($message, array $variables = array(), \Exception $previous = NULL) | 
| 16 | 19 |  	{ | 
| 17 | 20 | if ($variables) | 
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | /** | 
| 104 | 104 | * Setter / Getter of the next wait time | 
| 105 | 105 | * @param integer $next_wait_time milliseconds | 
| 106 | - * @return integer|Node | |
| 106 | + * @return integer | |
| 107 | 107 | */ | 
| 108 | 108 | public function next_wait_time($next_wait_time = NULL) | 
| 109 | 109 |  	{ | 
| @@ -158,7 +158,7 @@ discard block | ||
| 158 | 158 | |
| 159 | 159 | /** | 
| 160 | 160 | * The current internal ID, unique to this page | 
| 161 | - * @return mixed | |
| 161 | + * @return string | |
| 162 | 162 | */ | 
| 163 | 163 | public function id() | 
| 164 | 164 |  	{ | 
| @@ -508,7 +508,7 @@ discard block | ||
| 508 | 508 | * Execute arbitrary javascript on the page and get the result | 
| 509 | 509 | * | 
| 510 | 510 | * @param string $script | 
| 511 | - * @return mixed | |
| 511 | + * @return Node | |
| 512 | 512 | */ | 
| 513 | 513 | public function execute($script, $callback = NULL) | 
| 514 | 514 |  	{ | 
| @@ -655,7 +655,7 @@ discard block | ||
| 655 | 655 | * @param string|array $selector | 
| 656 | 656 | * @param array $filters | 
| 657 | 657 | * @throws Functest_Exception_Found If element is found on the page | 
| 658 | - * @return Node $this | |
| 658 | + * @return boolean $this | |
| 659 | 659 | */ | 
| 660 | 660 | public function not_present($selector, array $filters = array()) | 
| 661 | 661 |  	{ |