Best Atoum code snippet using call.exactly
XheBaseDom.php
Source:XheBaseDom.php
...40 }41 }42 return true;43 }44 protected function z_wait_element_exist_by_id($id,$exactly,$frame=-1)45 {46 $bWaitElementExistBeforeAction = false;47 $iSecondsWaitElementExistBeforeAction = 15;48 $iSec=0;49 if ($bWaitElementExistBeforeAction)50 {51 $is_exist = $this->z_is_exist_by_id($id,$exactly,$frame);52 while(!$is_exist)53 {54 usleep(250000);55 $is_exist = $this->z_is_exist_by_id($id,$exactly,$frame);56 $iSec+=0.25;57 if ($iSec>$iSecondsWaitElementExistBeforeAction)58 return false; 59 }60 }61 return true;62 }63 protected function z_wait_element_exist_by_inner_text($inner_text,$exactly,$frame=-1)64 {65 $bWaitElementExistBeforeAction = false;66 $iSecondsWaitElementExistBeforeAction = 15;67 $iSec=0;68 if ($bWaitElementExistBeforeAction)69 {70 $is_exist = $this->z_is_exist_by_inner_text($inner_text,$exactly,$frame);71 while(!$is_exist)72 {73 usleep(250000);74 $is_exist = $this->z_is_exist_by_inner_text($inner_text,$exactly,$frame);75 $iSec+=0.25;76 if ($iSec>$iSecondsWaitElementExistBeforeAction)77 return false; 78 }79 }80 return true;81 }82 protected function z_wait_element_exist_by_inner_html($inner_html,$exactly,$frame=-1)83 {84 $bWaitElementExistBeforeAction = false;85 $iSecondsWaitElementExistBeforeAction = 15;86 87 $iSec=0;88 if ($bWaitElementExistBeforeAction)89 {90 $is_exist = $this->z_is_exist_by_inner_html($inner_html,$exactly,$frame);91 while(!$is_exist)92 {93 usleep(250000);94 $is_exist = $this->z_is_exist_by_inner_html($inner_html,$exactly,$frame);95 $iSec+=0.25;96 if ($iSec>$iSecondsWaitElementExistBeforeAction)97 return false; 98 }99 }100 return true;101 }102 protected function z_wait_element_exist_by_outer_text($outer_text,$exactly,$frame=-1)103 {104 $bWaitElementExistBeforeAction = false;105 $iSecondsWaitElementExistBeforeAction = 15;106 $iSec=0;107 if ($bWaitElementExistBeforeAction)108 {109 $is_exist = $this->z_is_exist_by_outer_text($outer_text,$exactly,$frame);110 while(!$is_exist)111 {112 usleep(250000);113 $is_exist = $this->z_is_exist_by_outer_text($outer_text,$exactly,$frame);114 $iSec+=0.25;115 if ($iSec>$iSecondsWaitElementExistBeforeAction)116 return false; 117 }118 }119 return true;120 }121 protected function z_wait_element_exist_by_outer_html($outer_html,$exactly,$frame=-1)122 {123 $bWaitElementExistBeforeAction = false;124 $iSecondsWaitElementExistBeforeAction = 15;125 $iSec=0;126 if ($bWaitElementExistBeforeAction)127 {128 $is_exist = $this->z_is_exist_by_outer_html($outer_html,$exactly,$frame);129 while(!$is_exist)130 {131 usleep(250000);132 $is_exist = $this->z_is_exist_by_outer_html($outer_html,$exactly,$frame);133 $iSec+=0.25;134 if ($iSec>$iSecondsWaitElementExistBeforeAction)135 return false; 136 }137 }138 return true;139 }140 protected function z_wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)141 {142 $bWaitElementExistBeforeAction = false;143 $iSecondsWaitElementExistBeforeAction = 15;144 $iSec=0;145 if ($bWaitElementExistBeforeAction)146 {147 $is_exist = $this->z_is_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);148 while(!$is_exist)149 {150 usleep(500000);151 $is_exist = $this->z_is_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);152 $iSec+=0.5;153 if ($iSec>$iSecondsWaitElementExistBeforeAction)154 return false; 155 }156 }157 return true;158 }159 protected function z_wait_element_exist_by_xpath($xpath)160 {161 $bWaitElementExistBeforeAction = false;162 $iSecondsWaitElementExistBeforeAction = 15;163 $iSec=0;164 if ($bWaitElementExistBeforeAction)165 {166 $is_exist = $this->z_is_exist_by_xpath($xpath);167 while(!$is_exist)168 {169 usleep(500000);170 $is_exist = $this->z_is_exist_by_xpath($xpath);171 $iSec+=0.5;172 if ($iSec>$iSecondsWaitElementExistBeforeAction)173 return false; 174 }175 }176 return true;177 }178 protected function z_wait_element_exist_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame=-1)179 {180 $bWaitElementExistBeforeAction = false;181 $iSecondsWaitElementExistBeforeAction = 15;182 $iSec=0;183 if ($bWaitElementExistBeforeAction)184 {185 $is_exist = $this->z_is_exist_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame);186 while(!$is_exist)187 {188 usleep(500000);189 $is_exist = $this->z_is_exist_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame);190 $iSec+=0.5;191 if ($iSec>$iSecondsWaitElementExistBeforeAction)192 return false; 193 }194 }195 return true;196 }197 protected function z_wait_element_exist_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame=-1)198 {199 $bWaitElementExistBeforeAction = false;200 $iSecondsWaitElementExistBeforeAction = 15;201 $iSec=0;202 if ($bWaitElementExistBeforeAction)203 {204 $is_exist = $this->z_is_exist_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame);205 while(!$is_exist)206 {207 usleep(500000);208 $is_exist = $this->z_is_exist_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame);209 $iSec+=0.5;210 if ($iSec>$iSecondsWaitElementExistBeforeAction)211 return false; 212 }213 }214 return true;215 }216 217 protected function z_click_by_name($name,$frame,$wait_browser)218 { 219 $this->wait_element_exist_by_name($name,$frame);220 $params = array( "name" => $name , "frame" => $frame );221 $res=$this->call_boolean(__FUNCTION__,$params);222 if ($res==true && $wait_browser)223 {224 $browser = new XheBrowser($this->server);225 $browser->wait_for();226 } 227 return $res;228 }229 protected function z_click_by_number($number,$frame,$wait_browser)230 {231 $this->wait_element_exist_by_number($number,$frame); 232 $params = array( "number" => $number , "frame" => $frame );233 $res=$this->call_boolean(__FUNCTION__,$params);234 if ($res==true && $wait_browser)235 {236 $browser = new XheBrowser($this->server);237 $browser->wait_for();238 } 239 return $res;240 }241 protected function z_click_by_id($id,$exactly=true,$frame,$wait_browser)242 {243 $this->wait_element_exist_by_attribute("id",$id,$exactly,$frame); 244 $params = array( "id" => $id , "exactly" => $exactly , "frame" => $frame );245 $res=$this->call_boolean(__FUNCTION__,$params);246 if ($res==true && $wait_browser)247 {248 $browser = new XheBrowser($this->server);249 $browser->wait_for();250 } 251 return $res;252 }253 protected function z_click_by_value($value,$exactly=true,$frame,$wait_browser)254 {255 $this->wait_element_exist_by_attribute("value",$value,$exactly,$frame); 256 $params = array( "value" => $value , "exactly" => $exactly , "frame" => $frame );257 $res=$this->call_boolean(__FUNCTION__,$params);258 if ($res==true && $wait_browser)259 {260 $browser = new XheBrowser($this->server);261 $browser->wait_for();262 } 263 return $res;264 }265 protected function z_click_by_href($href,$exactly=true,$frame,$wait_browser)266 {267 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);268 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );269 $res=$this->call_boolean(__FUNCTION__,$params);270 if ($res==true && $wait_browser)271 {272 $browser = new XheBrowser($this->server);273 $browser->wait_for();274 } 275 return $res;276 } 277 protected function z_click_by_alt($alt,$exactly=true,$frame,$wait_browser)278 {279 $this->wait_element_exist_by_attribute("alt",$alt,$exactly,$frame);280 $params = array( "alt" => $alt , "exactly" => $exactly , "frame" => $frame );281 $res=$this->call_boolean(__FUNCTION__,$params);282 if ($res==true && $wait_browser)283 {284 $browser = new XheBrowser($this->server);285 $browser->wait_for();286 } 287 return $res;288 }289 protected function z_click_by_src($src,$exactly=true,$frame,$wait_browser)290 {291 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);292 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame );293 $res=$this->call_boolean(__FUNCTION__,$params);294 if ($res==true && $wait_browser)295 {296 $browser = new XheBrowser($this->server);297 $browser->wait_for();298 } 299 return $res;300 }301 protected function z_click_by_inner_text($inner_text,$exactly=true,$frame,$wait_browser)302 {303 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);304 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );305 $res=$this->call_boolean(__FUNCTION__,$params);306 307 if ($res==true && $wait_browser)308 {309 $browser = new XheBrowser($this->server);310 $browser->wait_for();311 } 312 return $res;313 }314 protected function z_click_by_inner_html($inner_html,$exactly=true,$frame,$wait_browser)315 {316 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);317 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "frame" => $frame );318 $res=$this->call_boolean(__FUNCTION__,$params);319 if ($res==true && $wait_browser)320 {321 $browser = new XheBrowser($this->server);322 $browser->wait_for();323 } 324 return $res;325 }326 protected function z_click_by_attribute($attr_name,$attr_value,$exactly=true,$frame,$wait_browser)327 {328 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);329 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );330 $res=$this->call_boolean(__FUNCTION__,$params);331 if ($res==true && $wait_browser)332 {333 $browser = new XheBrowser($this->server);334 $browser->wait_for();335 } 336 return $res;337 } 338 protected function z_click_all($frame,$wait_browser=true)339 {340 $params = array( "frame" => $frame );341 $res=$this->call_boolean(__FUNCTION__,$params);342 if ($res==true && $wait_browser)343 {344 $browser = new XheBrowser($this->server);345 $browser->wait_for();346 } 347 return $res;348 }349 protected function z_click_random($frame,$wait_browser)350 {351 $params = array( "frame" => $frame );352 $res=$this->call_get(__FUNCTION__,$params);353 if ($res!=-1 && $wait_browser)354 {355 $browser = new XheBrowser($this->server);356 $browser->wait_for();357 } 358 return $res;359 }360 protected function z_click_by_name_and_value($name,$value="",$frame,$wait_browser)361 {362 $params = array( "name" => $name , "value" => $value , "frame" => $frame );363 $res=$this->call_boolean(__FUNCTION__,$params);364 if ($res==true && $wait_browser)365 {366 $browser = new XheBrowser($this->server);367 $browser->wait_for();368 } 369 return $res;370 }371 372 protected function z_click_by_name_by_form_name($name,$form_name,$frame,$wait_browser)373 {374 $this->wait_element_exist_by_attribute_by_form_name("name",$name,true,$form_name,$frame);375 $params = array( "name" => $name , "form_name" => $form_name , "frame" => $frame);376 $res=$this->call_boolean(__FUNCTION__,$params);377 if ($res==true && $wait_browser)378 {379 $browser = new XheBrowser($this->server);380 $browser->wait_for();381 } 382 return $res;383 }384 protected function z_click_by_name_by_form_number($name,$form_number,$frame,$wait_browser)385 {386 $this->wait_element_exist_by_attribute_by_form_number("name",$name,true,$form_number,$frame);387 $params = array( "name" => $name , "form_number" => $form_number , "frame" => $frame);388 $res=$this->call_boolean(__FUNCTION__,$params);389 if ($res==true && $wait_browser)390 {391 $browser = new XheBrowser($this->server);392 $browser->wait_for();393 } 394 return $res;395 }396 protected function z_click_by_number_by_form_name($number,$form_name,$frame,$wait_browser)397 {398 $params = array( "number" => $number , "form_name" => $form_name , "frame" => $frame);399 $res=$this->call_boolean(__FUNCTION__,$params);400 if ($res==true && $wait_browser)401 {402 $browser = new XheBrowser($this->server);403 $browser->wait_for();404 } 405 return $res;406 }407 protected function z_click_by_number_by_form_number($number,$form_number,$frame,$wait_browser)408 {409 $params = array( "number" => $number , "form_number" => $form_number , "frame" => $frame);410 $res=$this->call_boolean(__FUNCTION__,$params);411 if ($res==true && $wait_browser)412 {413 $browser = new XheBrowser($this->server);414 $browser->wait_for();415 } 416 return $res;417 }418 protected function z_click_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame=-1,$wait_browser=true)419 {420 $this->wait_element_exist_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame);421 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "form_name" => $form_name , "frame" => $frame);422 $res=$this->call_boolean(__FUNCTION__,$params);423 if ($res==true && $wait_browser)424 {425 $browser = new XheBrowser($this->server);426 $browser->wait_for();427 } 428 return $res;429 }430 protected function z_click_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame=-1,$wait_browser=true)431 {432 $this->wait_element_exist_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame);433 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "form_number" => $form_number , "frame" => $frame);434 $res=$this->call_boolean(__FUNCTION__,$params);435 if ($res==true && $wait_browser)436 {437 $browser = new XheBrowser($this->server);438 $browser->wait_for();439 } 440 return $res;441 }442 443 protected function z_click_in_by_name($name,$x=-1,$y=-1,$frame=-1)444 {445 $this->wait_element_exist_by_name($name,$frame);446 $params = array( "name" => $name , "x" => $x , "y" => $y , "frame" => $frame );447 $res=$this->call_boolean(__FUNCTION__,$params);448 if ($res==true)449 {450 $browser = new XheBrowser($this->server);451 $browser->wait_for();452 sleep(1);453 } 454 return $res;455 }456 protected function z_click_in_by_number($number,$x=-1,$y=-1,$frame=-1)457 {458 $this->wait_element_exist_by_number($number,$frame);459 $params = array( "number" => $number , "x" => $x , "y" => $y , "frame" => $frame );460 $res=$this->call_boolean(__FUNCTION__,$params);461 if ($res==true)462 {463 $browser = new XheBrowser($this->server);464 $browser->wait_for();465 sleep(1);466 } 467 return $res;468 }469 protected function z_click_in_by_src($src,$exactly="true",$x=-1,$y=-1,$frame=-1)470 {471 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);472 $params = array( "src" => $src , "exactly" => $exactly , "x" => $x , "y" => $y , "frame" => $frame );473 $res=$this->call_boolean(__FUNCTION__,$params);474 if ($res==true)475 {476 $browser = new XheBrowser($this->server);477 $browser->wait_for();478 sleep(1);479 } 480 return $res;481 }482 protected function z_click_in_by_attribute($attr_name,$attr_value,$exactly="true",$x=-1,$y=-1,$frame=-1)483 {484 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);485 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "x" => $x , "y" => $y , "frame" => $frame );486 $res=$this->call_boolean(__FUNCTION__,$params);487 if ($res==true)488 {489 $browser = new XheBrowser($this->server);490 $browser->wait_for();491 sleep(1);492 } 493 return $res;494 }495 496 protected function z_send_event_by_name($name,$event,$frame,$wait_browser)497 {498 $this->wait_element_exist_by_name($name,$frame);499 $params = array( "name" => $name , "event" => $event ,"frame" => $frame );500 $res=$this->call_boolean(__FUNCTION__,$params);501 if ($res==true && $wait_browser)502 {503 $browser = new XheBrowser($this->server);504 $browser->wait_for();505 } 506 return $res;507 }508 protected function z_send_event_by_id($id,$exactly,$event,$frame,$wait_browser)509 {510 $this->wait_element_exist_by_id($id,$frame);511 $params = array( "id" => $id , "exactly" => $exactly , "event" => $event ,"frame" => $frame );512 $res=$this->call_boolean(__FUNCTION__,$params);513 if ($res==true && $wait_browser)514 {515 $browser = new XheBrowser($this->server);516 $browser->wait_for();517 } 518 return $res;519 }520 protected function z_send_event_by_number($number,$event,$frame,$wait_browser)521 {522 $this->wait_element_exist_by_number($number,$frame);523 $params = array( "number" => $number , "event" => $event , "frame" => $frame );524 $res=$this->call_boolean(__FUNCTION__,$params);525 if ($res==true && $wait_browser)526 {527 $browser = new XheBrowser($this->server);528 $browser->wait_for();529 } 530 return $res;531 }532 protected function z_send_event_by_href($href,$exactly,$event,$frame,$wait_browser)533 {534 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);535 $params = array( "href" => $href , "exactly" => $exactly , "event" => $event , "frame" => $frame );536 $res=$this->call_boolean(__FUNCTION__,$params);537 if ($res==true && $wait_browser)538 {539 $browser = new XheBrowser($this->server);540 $browser->wait_for();541 } 542 return $res;543 }544 protected function z_send_event_by_inner_text($inner_text,$exactly,$event,$frame,$wait_browser)545 {546 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);547 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "event" => $event , "frame" => $frame );548 $res=$this->call_boolean(__FUNCTION__,$params);549 if ($res==true && $wait_browser)550 {551 $browser = new XheBrowser($this->server);552 $browser->wait_for();553 } 554 return $res;555 }556 protected function z_send_event_by_inner_html($inner_html,$exactly,$event,$frame,$wait_browser)557 {558 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);559 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "event" => $event , "frame" => $frame );560 $res=$this->call_boolean(__FUNCTION__,$params);561 if ($res==true && $wait_browser)562 {563 $browser = new XheBrowser($this->server);564 $browser->wait_for();565 } 566 return $res;567 }568 protected function z_send_event_by_attribute($attr_name,$attr_value,$exactly,$event,$frame,$wait_browser)569 {570 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);571 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "event" => $event ,"frame" => $frame );572 $res=$this->call_boolean(__FUNCTION__,$params);573 if ($res==true && $wait_browser)574 {575 $browser = new XheBrowser($this->server);576 $browser->wait_for();577 } 578 return $res;579 }580 581 protected function z_set_focus_by_name($name,$frame)582 {583 $this->wait_element_exist_by_name($name,$frame);584 $params = array( "name" => $name , "frame" => $frame );585 return $this->call_boolean(__FUNCTION__,$params);586 }587 protected function z_set_focus_by_number($number,$frame)588 {589 $this->wait_element_exist_by_number($number,$frame);590 $params = array( "number" => $number , "frame" => $frame );591 return $this->call_boolean(__FUNCTION__,$params);592 }593 protected function z_set_focus_by_inner_text($inner_text,$exactly=true,$frame)594 {595 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);596 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );597 return $this->call_boolean(__FUNCTION__,$params);598 }599 protected function z_set_focus_by_inner_html($inner_html,$exactly=true,$frame)600 {601 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);602 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "frame" => $frame );603 return $this->call_boolean(__FUNCTION__,$params);604 }605 protected function z_set_focus_by_href($href,$exactly=true,$frame)606 {607 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);608 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );609 return $this->call_boolean(__FUNCTION__,$params);610 }611 protected function z_set_focus_by_attribute($attr_name,$attr_value,$exactly=true,$frame)612 {613 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);614 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );615 return $this->call_boolean(__FUNCTION__,$params);616 }617 618 protected function z_set_value_by_name($name,$value,$frame=-1)619 {620 $this->wait_element_exist_by_name($name,$frame);621 $params = array( "name" => $name , "value" => $value , "frame" => $frame);622 return $this->call_boolean(__FUNCTION__,$params,600);623 }624 protected function z_set_value_by_number($number,$value,$frame=-1)625 {626 $this->wait_element_exist_by_number($number,$frame);627 $params = array( "number" => $number , "value" => $value , "frame" => $frame);628 return $this->call_boolean(__FUNCTION__,$params,600);629 }630 protected function z_set_value_by_attribute($attr_name,$attr_value,$exactly,$value,$frame=-1)631 {632 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);633 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "value" => $value , "frame" => $frame);634 return $this->call_boolean(__FUNCTION__,$params,600);635 }636 protected function z_set_value_by_name_by_form_name($name,$value,$form_name,$frame=-1)637 {638 $this->wait_element_exist_by_attribute_by_form_name("name",$name,true,$form_name,$frame);639 $params = array( "name" => $name , "value" => $value , "form_name" => $form_name , "frame" => $frame);640 return $this->call_boolean(__FUNCTION__,$params,600);641 }642 protected function z_set_value_by_name_by_form_number($name,$value,$form_number,$frame=-1)643 {644 $this->wait_element_exist_by_attribute_by_form_number("name",$name,true,$form_number,$frame);645 $params = array( "name" => $name , "value" => $value , "form_number" => $form_number , "frame" => $frame);646 return $this->call_boolean(__FUNCTION__,$params,600);647 }648 protected function z_set_value_by_number_by_form_name($number,$value,$form_name,$frame=-1)649 {650 $params = array( "number" => $number , "value" => $value , "form_name" => $form_name , "frame" => $frame);651 return $this->call_boolean(__FUNCTION__,$params,600);652 }653 protected function z_set_value_by_number_by_form_number($number,$value,$form_number,$frame=-1)654 {655 $params = array( "number" => $number , "value" => $value , "form_number" => $form_number , "frame" => $frame);656 return $this->call_boolean(__FUNCTION__,$params,600);657 }658 protected function z_set_value_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$value,$form_name,$frame=-1)659 {660 $this->wait_element_exist_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame);661 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "value" => $value , "form_name" => $form_name , "frame" => $frame);662 return $this->call_boolean(__FUNCTION__,$params,600);663 }664 protected function z_set_value_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$value,$form_number,$frame=-1)665 {666 $this->wait_element_exist_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame);667 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "value" => $value , "form_number" => $form_number , "frame" => $frame);668 return $this->call_boolean(__FUNCTION__,$params,600);669 }670 671 protected function z_set_inner_text_by_name($name,$inner_text,$frame)672 {673 $this->wait_element_exist_by_name($name,$frame);674 $params = array( "name" => $name , "inner_text" => $inner_text , "frame" => $frame );675 return $this->call_boolean(__FUNCTION__,$params,600);676 }677 protected function z_set_inner_text_by_number($number,$inner_text,$frame)678 {679 $this->wait_element_exist_by_number($number,$frame);680 $params = array( "number" => $number , "inner_text" => $inner_text , "frame" => $frame );681 return $this->call_boolean(__FUNCTION__,$params,600);682 } 683 protected function z_set_inner_text_by_attribute($attr_name,$attr_value,$exactly,$inner_text,$frame)684 {685 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);686 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "inner_text" => $inner_text , "frame" => $frame );687 return $this->call_boolean(__FUNCTION__,$params,600);688 } 689 protected function z_set_inner_html_by_name($name,$inner_html,$frame)690 {691 $this->wait_element_exist_by_name($name,$frame);692 $params = array( "name" => $name , "inner_html" => $inner_html , "frame" => $frame );693 return $this->call_boolean(__FUNCTION__,$params,600);694 }695 protected function z_set_inner_html_by_number($number,$inner_html,$frame)696 {697 $this->wait_element_exist_by_number($number,$frame);698 $params = array( "number" => $number , "inner_html" => $inner_html , "frame" => $frame );699 return $this->call_boolean(__FUNCTION__,$params,600);700 } 701 protected function z_set_inner_html_by_attribute($attr_name,$attr_value,$exactly,$inner_html,$frame)702 {703 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);704 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "inner_html" => $inner_html , "frame" => $frame );705 return $this->call_boolean(__FUNCTION__,$params,600);706 } 707 708 protected function z_add_attribute_by_name($name,$name_attr,$value_attr,$frame)709 {710 $this->wait_element_exist_by_name($name,$frame);711 $params = array( "name" => $name , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );712 return $this->call_boolean(__FUNCTION__,$params);713 }714 protected function z_add_attribute_by_number($number,$name_attr,$value_attr,$frame)715 {716 $this->wait_element_exist_by_number($number,$frame);717 $params = array( "number" => $number , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );718 return $this->call_boolean(__FUNCTION__,$params);719 }720 protected function z_add_attribute_by_inner_text($inner_text,$exactly,$name_attr,$value_attr,$frame)721 {722 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);723 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );724 return $this->call_boolean(__FUNCTION__,$params);725 }726 protected function z_add_attribute_by_inner_html($inner_html,$exactly,$name_attr,$value_attr,$frame)727 {728 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);729 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );730 return $this->call_boolean(__FUNCTION__,$params);731 }732 protected function z_add_attribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr,$value_attr,$frame)733 {734 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);735 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );736 return $this->call_boolean(__FUNCTION__,$params);737 }738 protected function z_set_attribute_by_name($name,$name_attr,$value_attr,$frame=-1)739 {740 $this->wait_element_exist_by_name($name,$frame);741 $params = array( "name" => $name , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );742 return $this->call_boolean(__FUNCTION__,$params);743 }744 protected function z_set_attribute_by_number($number,$name_attr,$value_attr,$frame=-1)745 {746 $this->wait_element_exist_by_number($number,$frame);747 $params = array( "number" => $number , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );748 return $this->call_boolean(__FUNCTION__,$params);749 }750 protected function z_set_attribute_by_inner_text($inner_text,$exactly,$name_attr,$value_attr,$frame=-1)751 {752 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);753 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );754 return $this->call_boolean(__FUNCTION__,$params);755 }756 protected function z_set_attribute_by_inner_html($inner_html,$exactly,$name_attr,$value_attr,$frame=-1)757 {758 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);759 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );760 return $this->call_boolean(__FUNCTION__,$params);761 }762 protected function z_set_attribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr,$value_attr,$frame=-1)763 {764 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);765 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "name_attr" => $name_attr , "value_attr" => $value_attr , "frame" => $frame );766 return $this->call_boolean(__FUNCTION__,$params);767 }768 protected function z_remove_attribute_by_name($name,$name_attr,$frame)769 {770 $this->wait_element_exist_by_name($name,$frame);771 $params = array( "name" => $name , "name_attr" => $name_attr , "frame" => $frame );772 return $this->call_boolean(__FUNCTION__,$params);773 }774 protected function z_remove_attribute_by_number($number,$name_attr,$frame)775 {776 $this->wait_element_exist_by_number($number,$frame);777 $params = array( "number" => $number , "name_attr" => $name_attr , "frame" => $frame );778 return $this->call_boolean(__FUNCTION__,$params);779 }780 protected function z_remove_attribute_by_inner_text($inner_text,$exactly,$name_attr,$frame)781 {782 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);783 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );784 return $this->call_boolean(__FUNCTION__,$params);785 }786 protected function z_remove_attribute_by_inner_html($inner_html,$exactly,$name_attr,$frame)787 {788 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);789 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );790 return $this->call_boolean(__FUNCTION__,$params);791 }792 protected function z_remove_attribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr,$frame)793 {794 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);795 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );796 return $this->call_boolean(__FUNCTION__,$params);797 }798 799 protected function z_screenshot_by_name($file_path,$name,$frame=-1,$as_gray=false)800 {801 $this->wait_element_exist_by_name($name,$frame);802 $params = array( "name" => $name , "file_path" => $file_path , "frame" => $frame , "as_gray" => $as_gray );803 return $this->call_boolean(__FUNCTION__,$params);804 }805 protected function z_screenshot_by_number($file_path,$number,$frame=-1,$as_gray=false)806 {807 $this->wait_element_exist_by_number($number,$frame);808 $params = array( "number" => $number , "file_path" => $file_path , "frame" => $frame , "as_gray" => $as_gray);809 return $this->call_boolean(__FUNCTION__,$params);810 }811 protected function z_screenshot_by_src($file_path,$src,$exactly=true,$frame=-1,$as_gray=false)812 {813 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);814 $params = array( "src" => $src , "exactly" => $exactly , "file_path" => $file_path , "frame" => $frame , "as_gray" => $as_gray);815 return $this->call_boolean(__FUNCTION__,$params);816 }817 protected function z_screenshot_by_attribute($file_path,$attr_name,$attr_value,$exactly=true,$frame=-1,$as_gray=false)818 {819 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);820 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "file_path" => $file_path , "frame" => $frame , "as_gray" => $as_gray);821 return $this->call_boolean(__FUNCTION__,$params);822 }823 824 protected function z_is_exist_by_number($number,$frame)825 {826 $params = array( "number" => $number , "frame" => $frame );827 return $this->call_boolean(__FUNCTION__,$params);828 }829 protected function z_is_exist_by_name($name,$frame)830 {831 $params = array( "name" => $name , "frame" => $frame );832 return $this->call_boolean(__FUNCTION__,$params);833 }834 protected function z_is_exist_by_id($id,$exactly,$frame)835 {836 $params = array( "id" => $id , "exactly" => $exactly , "frame" => $frame );837 return $this->call_boolean(__FUNCTION__,$params);838 }839 protected function z_is_exist_by_href($href,$exactly,$frame)840 {841 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );842 return $this->call_boolean(__FUNCTION__,$params);843 } 844 protected function z_is_exist_by_alt($alt,$exactly,$frame)845 {846 $params = array( "alt" => $alt , "exactly" => $exactly , "frame" => $frame );847 return $this->call_boolean(__FUNCTION__,$params);848 } 849 protected function z_is_exist_by_src($src,$exactly,$frame)850 {851 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame );852 return $this->call_boolean(__FUNCTION__,$params);853 } 854 protected function z_is_exist_by_inner_text($inner_text,$exactly,$frame)855 {856 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );857 return $this->call_boolean(__FUNCTION__,$params);858 } 859 protected function z_is_exist_by_inner_html($inner_html,$exactly,$frame)860 {861 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "frame" => $frame );862 return $this->call_boolean(__FUNCTION__,$params);863 } 864 protected function z_is_exist_by_outer_text($outer_text,$exactly,$frame)865 {866 $params = array( "outer_text" => $outer_text , "exactly" => $exactly , "frame" => $frame );867 return $this->call_boolean(__FUNCTION__,$params);868 } 869 protected function z_is_exist_by_outer_html($outer_html,$exactly,$frame)870 {871 $params = array( "outer_html" => $outer_html , "exactly" => $exactly , "frame" => $frame );872 return $this->call_boolean(__FUNCTION__,$params);873 } 874 protected function z_is_exist_by_attribute($attr_name,$attr_value,$exactly,$frame)875 {876 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );877 return $this->call_boolean(__FUNCTION__,$params);878 }879 protected function z_is_exist_by_xpath($xpath)880 {881 $params = array( "xpath" => $xpath );882 return $this->call_boolean(__FUNCTION__,$params);883 }884 protected function z_is_exist_by_attribute_by_form_number($attr_name,$attr_value,$exactly,$form_number,$frame)885 {886 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "form_number" => $form_number , "frame" => $frame );887 return $this->call_boolean(__FUNCTION__,$params);888 }889 protected function z_is_exist_by_attribute_by_form_name($attr_name,$attr_value,$exactly,$form_name,$frame)890 {891 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "form_name" => $form_name , "frame" => $frame );892 return $this->call_boolean(__FUNCTION__,$params);893 }894 895 protected function z_get_name_by_number($number,$frame)896 {897 $this->wait_element_exist_by_number($number,$frame);898 $params = array( "number" => $number , "frame" => $frame );899 return $this->call_get(__FUNCTION__,$params);900 }901 protected function z_get_number_by_name($name,$frame)902 {903 $this->wait_element_exist_by_name($name,$frame);904 $params = array( "name" => $name , "frame" => $frame );905 return $this->call_get(__FUNCTION__,$params);906 }907 protected function z_get_number_by_inner_text($inner_text,$exactly=true,$frame)908 {909 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);910 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );911 return $this->call_get(__FUNCTION__,$params);912 }913 protected function z_get_number_by_inner_html($inner_html,$exactly=true,$frame)914 {915 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);916 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "frame" => $frame );917 return $this->call_get(__FUNCTION__,$params);918 }919 protected function z_get_number_by_id($id,$frame)920 {921 $this->wait_element_exist_by_attribute("id",$id,true,$frame);922 $params = array( "id" => $id , "frame" => $frame );923 return $this->call_get(__FUNCTION__,$params);924 }925 protected function z_get_number_by_src($src,$exactly=true,$frame)926 {927 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);928 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame );929 return $this->call_get(__FUNCTION__,$params);930 }931 protected function z_get_number_by_href($href,$exactly=true,$frame)932 {933 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);934 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );935 return $this->call_get(__FUNCTION__,$params);936 }937 protected function z_get_number_by_attribute($attr_name,$attr_value,$exactly=true,$frame)938 {939 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);940 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );941 return $this->call_get(__FUNCTION__,$params);942 }943 protected function z_get_inner_text_by_name($name,$frame)944 {945 $this->wait_element_exist_by_name($name,$frame);946 $params = array( "name" => $name , "frame" => $frame );947 return $this->call_get(__FUNCTION__,$params);948 }949 protected function z_get_inner_text_by_number($number,$frame)950 {951 $this->wait_element_exist_by_number($number,$frame);952 $params = array( "number" => $number , "frame" => $frame );953 return $this->call_get(__FUNCTION__,$params);954 }955 protected function z_get_inner_text_by_id($id,$frame)956 {957 $this->wait_element_exist_by_attribute("id",$id,true,$frame);958 $params = array( "id" => $id , "frame" => $frame );959 return $this->call_get(__FUNCTION__,$params);960 }961 protected function z_get_inner_text_by_href($href,$exactly,$frame)962 {963 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);964 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );965 return $this->call_get(__FUNCTION__,$params);966 }967 protected function z_get_inner_text_by_attribute($attr_name,$attr_value,$exactly=true,$frame)968 {969 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);970 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );971 return $this->call_get(__FUNCTION__,$params);972 }973 protected function z_get_inner_html_by_name($name,$frame)974 {975 $this->wait_element_exist_by_name($name,$frame);976 $params = array( "name" => $name , "frame" => $frame );977 return $this->call_get(__FUNCTION__,$params);978 }979 protected function z_get_inner_html_by_number($number,$frame)980 {981 $this->wait_element_exist_by_number($number,$frame);982 $params = array( "number" => $number , "frame" => $frame );983 return $this->call_get(__FUNCTION__,$params);984 }985 protected function z_get_inner_html_by_id($id,$frame)986 {987 $this->wait_element_exist_by_attribute("id",$id,true,$frame);988 $params = array( "id" => $id , "frame" => $frame );989 return $this->call_get(__FUNCTION__,$params);990 }991 protected function z_get_inner_html_by_attribute($attr_name,$attr_value,$exactly=true,$frame)992 {993 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);994 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );995 return $this->call_get(__FUNCTION__,$params);996 }997 protected function z_get_value_by_name($name,$frame)998 {999 $this->wait_element_exist_by_name($name,$frame);1000 $params = array( "name" => $name , "frame" => $frame );1001 return $this->call_get(__FUNCTION__,$params);1002 }1003 protected function z_get_value_by_number($number,$frame)1004 {1005 $this->wait_element_exist_by_number($number,$frame);1006 $params = array( "number" => $number , "frame" => $frame );1007 return $this->call_get(__FUNCTION__,$params);1008 }1009 protected function z_get_value_by_attribute($attr_name,$attr_value,$exactly,$frame)1010 {1011 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1012 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );1013 return $this->call_get(__FUNCTION__,$params);1014 }1015 protected function z_get_src_by_name($name,$frame=-1)1016 {1017 $this->wait_element_exist_by_name($name,$frame);1018 $params = array( "name" => $name , "frame" => $frame );1019 return $this->call_get(__FUNCTION__,$params);1020 }1021 protected function z_get_src_by_number($number,$frame=-1)1022 {1023 $this->wait_element_exist_by_number($number,$frame);1024 $params = array( "number" => $number , "frame" => $frame );1025 return $this->call_get(__FUNCTION__,$params);1026 }1027 protected function z_get_alt_by_name($name,$frame=-1)1028 {1029 $this->wait_element_exist_by_name($name,$frame);1030 $params = array( "name" => $name , "frame" => $frame );1031 return $this->call_get(__FUNCTION__,$params);1032 }1033 protected function z_get_alt_by_number($number,$frame=-1)1034 {1035 $this->wait_element_exist_by_number($number,$frame);1036 $params = array( "number" => $number , "frame" => $frame );1037 return $this->call_get(__FUNCTION__,$params);1038 }1039 protected function z_get_href_by_name($name,$frame)1040 {1041 $this->wait_element_exist_by_name($name,$frame);1042 $params = array( "name" => $name , "frame" => $frame );1043 return $this->call_get(__FUNCTION__,$params);1044 }1045 protected function z_get_href_by_number($number,$frame)1046 {1047 $this->wait_element_exist_by_number($number,$frame);1048 $params = array( "number" => $number , "frame" => $frame );1049 return $this->call_get(__FUNCTION__,$params);1050 }1051 protected function z_get_href_by_inner_text($inner_text,$exactly=true,$frame)1052 {1053 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);1054 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );1055 return $this->call_get(__FUNCTION__,$params);1056 } 1057 protected function z_get_attribute_by_name($name,$name_attr,$frame)1058 {1059 $this->wait_element_exist_by_name($name,$frame);1060 $params = array( "name" => $name , "name_attr" => $name_attr , "frame" => $frame );1061 return $this->call_get(__FUNCTION__,$params);1062 }1063 protected function z_get_attribute_by_number($number,$name_attr,$frame)1064 {1065 $this->wait_element_exist_by_number($number,$frame);1066 $params = array( "number" => $number , "name_attr" => $name_attr , "frame" => $frame );1067 return $this->call_get(__FUNCTION__,$params);1068 }1069 protected function z_get_attribute_by_src($src,$exactly,$name_attr,$frame)1070 {1071 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);1072 $params = array( "src" => $src , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );1073 return $this->call_get(__FUNCTION__,$params);1074 }1075 protected function z_get_attribute_by_inner_text($inner_text,$exactly,$name_attr,$frame)1076 {1077 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);1078 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );1079 return $this->call_get(__FUNCTION__,$params);1080 }1081 protected function z_get_attribute_by_inner_html($inner_html,$exactly,$name_attr,$frame)1082 {1083 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);1084 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );1085 return $this->call_get(__FUNCTION__,$params);1086 }1087 protected function z_get_attribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr,$frame)1088 {1089 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1090 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "name_attr" => $name_attr , "frame" => $frame );1091 return $this->call_get(__FUNCTION__,$params);1092 }1093 protected function z_get_all_attributes_by_name($name,$frame)1094 {1095 $this->wait_element_exist_by_name($name,$frame);1096 $params = array( "name" => $name , "frame" => $frame );1097 return $this->call_get(__FUNCTION__,$params);1098 }1099 protected function z_get_all_attributes_by_number($number,$frame)1100 {1101 $this->wait_element_exist_by_number($number,$frame);1102 $params = array( "number" => $number , "frame" => $frame );1103 return $this->call_get(__FUNCTION__,$params);1104 }1105 protected function z_get_all_attributes_by_src($src,$exactly,$frame)1106 {1107 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);1108 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame );1109 return $this->call_get(__FUNCTION__,$params);1110 }1111 protected function z_get_all_attributes_values_by_name($name,$frame)1112 {1113 $this->wait_element_exist_by_name($name,$frame);1114 $params = array( "name" => $name , "frame" => $frame );1115 return $this->call_get(__FUNCTION__,$params);1116 }1117 protected function z_get_all_attributes_values_by_number($number,$frame)1118 {1119 $this->wait_element_exist_by_number($number,$frame);1120 $params = array( "number" => $number , "frame" => $frame );1121 return $this->call_get(__FUNCTION__,$params);1122 }1123 protected function z_get_all_attributes_values_by_src($src,$exactly,$frame)1124 {1125 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);1126 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame );1127 return $this->call_get(__FUNCTION__,$params);1128 }1129 protected function z_get_all_events_by_name($name,$frame)1130 {1131 $this->wait_element_exist_by_name($name,$frame);1132 $params = array( "name" => $name , "frame" => $frame );1133 return $this->call_get(__FUNCTION__,$params);1134 }1135 protected function z_get_all_events_by_number($number,$frame)1136 {1137 $this->wait_element_exist_by_number($number,$frame);1138 $params = array( "number" => $number , "frame" => $frame );1139 return $this->call_get(__FUNCTION__,$params);1140 }1141 protected function z_get_all_events_by_src($src,$exactly,$frame)1142 {1143 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);1144 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame );1145 return $this->call_get(__FUNCTION__,$params);1146 }1147 protected function z_is_disabled_by_name($name,$frame)1148 {1149 $this->wait_element_exist_by_name($name,$frame);1150 $params = array( "name" => $name , "frame" => $frame );1151 return $this->call_boolean(__FUNCTION__,$params);1152 }1153 protected function z_is_disabled_by_number($number,$frame)1154 {1155 $this->wait_element_exist_by_number($number,$frame);1156 $params = array( "number" => $number , "frame" => $frame );1157 return $this->call_boolean(__FUNCTION__,$params);1158 }1159 protected function z_get_numbers_child_by_name($name,$element_type,$frame,$include_subchildren)1160 {1161 $this->wait_element_exist_by_name($name,$frame);1162 $params = array( "name" => $name , "element_type" => $element_type , "frame" => $frame , "include_subchildren" => $include_subchildren);1163 return $this->call_get(__FUNCTION__,$params);1164 }1165 protected function z_get_numbers_child_by_number($number,$element_type,$frame,$include_subchildren)1166 {1167 $this->wait_element_exist_by_number($number,$frame);1168 $params = array( "number" => $number , "element_type" => $element_type , "frame" => $frame , "include_subchildren" => $include_subchildren);1169 return $this->call_get(__FUNCTION__,$params);1170 }1171 protected function z_get_numbers_child_by_id($id,$element_type,$frame,$include_subchildren)1172 {1173 $this->wait_element_exist_by_attribute("id",$id,true,$frame);1174 $params = array( "id" => $id , "element_type" => $element_type , "frame" => $frame , "include_subchildren" => $include_subchildren);1175 return $this->call_get(__FUNCTION__,$params);1176 }1177 protected function z_get_numbers_child_by_attribute($attr_name,$attr_value,$exactly,$element_type,$frame,$include_subchildren)1178 {1179 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1180 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "element_type" => $element_type , "frame" => $frame , "include_subchildren" => $include_subchildren);1181 return $this->call_get(__FUNCTION__,$params);1182 }1183 1184 protected function z_send_keyboard_input_by_name($name,$string,$timeout,$frame)1185 {1186 $PHP_Use_Trought_Shell = true;1187 $this->wait_element_exist_by_name($name,$frame);1188 $params = array( "name" => $name , "string" => $string , "timeout" => $timeout , "frame" => $frame);1189 $res=$this->call_boolean(__FUNCTION__,$params);1190 if ($res!=false && $PHP_Use_Trought_Shell)1191 fgets(STDIN);1192 else1193 usleep(120000);1194 return $res;1195 }1196 protected function z_send_keyboard_input_by_number($number,$string,$timeout,$frame)1197 {1198 $PHP_Use_Trought_Shell = true;1199 1200 $params = array( "number" => $number , "string" => $string , "timeout" => $timeout , "frame" => $frame);1201 $res=$this->call_boolean(__FUNCTION__,$params);1202 if ($res!=false && $PHP_Use_Trought_Shell)1203 fgets(STDIN);1204 else1205 usleep(120000);1206 return $res;1207 }1208 protected function z_send_keyboard_input_by_inner_text($inner_text,$exactly,$string,$timeout,$frame)1209 {1210 $PHP_Use_Trought_Shell = true;1211 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);1212 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "string" => $string , "timeout" => $timeout , "frame" => $frame);1213 $res=$this->call_boolean(__FUNCTION__,$params);1214 if ($res!=false && $PHP_Use_Trought_Shell)1215 fgets(STDIN);1216 else1217 usleep(120000);1218 return $res;1219 }1220 protected function z_send_keyboard_input_by_inner_html($inner_html,$exactly,$string,$timeout,$frame)1221 {1222 $PHP_Use_Trought_Shell = true;1223 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);1224 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "string" => $string , "timeout" => $timeout , "frame" => $frame);1225 $res=$this->call_boolean(__FUNCTION__,$params);1226 if ($res!=false && $PHP_Use_Trought_Shell)1227 fgets(STDIN);1228 else1229 usleep(120000);1230 return $res;1231 }1232 protected function z_send_keyboard_input_by_attribute($attr_name,$attr_value,$exactly,$string,$timeout,$frame)1233 {1234 $PHP_Use_Trought_Shell = true;1235 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1236 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "string" => $string , "timeout" => $timeout , "frame" => $frame);1237 $res=$this->call_boolean(__FUNCTION__,$params);1238 if ($res!=false && $PHP_Use_Trought_Shell)1239 fgets(STDIN);1240 else1241 usleep(120000);1242 return $res;1243 }1244 1245 protected function z_get_x_by_name($name,$frame)1246 {1247 $this->wait_element_exist_by_name($name,$frame);1248 $params = array( "name" => $name , "frame" => $frame );1249 return $this->call_get(__FUNCTION__,$params);1250 }1251 protected function z_get_x_by_number($number,$frame)1252 {1253 $this->wait_element_exist_by_number($number,$frame);1254 $params = array( "number" => $number , "frame" => $frame );1255 return $this->call_get(__FUNCTION__,$params);1256 }1257 protected function z_get_x_by_inner_text($inner_text,$exactly,$frame)1258 {1259 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);1260 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );1261 return $this->call_get(__FUNCTION__,$params);1262 }1263 protected function z_get_x_by_inner_html($inner_html,$exactly,$frame)1264 {1265 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);1266 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "frame" => $frame );1267 return $this->call_get(__FUNCTION__,$params);1268 }1269 protected function z_get_x_by_href($href,$exactly,$frame)1270 {1271 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);1272 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );1273 return $this->call_get(__FUNCTION__,$params);1274 } 1275 protected function z_get_x_by_attribute($attr_name,$attr_value,$exactly,$frame)1276 {1277 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1278 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );1279 return $this->call_get(__FUNCTION__,$params);1280 }1281 protected function z_get_y_by_name($name,$frame)1282 {1283 $this->wait_element_exist_by_name($name,$frame);1284 $params = array( "name" => $name , "frame" => $frame );1285 return $this->call_get(__FUNCTION__,$params);1286 }1287 protected function z_get_y_by_number($number,$frame)1288 {1289 $this->wait_element_exist_by_number($number,$frame);1290 $params = array( "number" => $number , "frame" => $frame );1291 return $this->call_get(__FUNCTION__,$params);1292 }1293 protected function z_get_y_by_inner_text($inner_text,$exactly,$frame)1294 {1295 $this->wait_element_exist_by_inner_text($inner_text,$exactly,$frame);1296 $params = array( "inner_text" => $inner_text , "exactly" => $exactly , "frame" => $frame );1297 return $this->call_get(__FUNCTION__,$params);1298 }1299 protected function z_get_y_by_inner_html($inner_html,$exactly,$frame)1300 {1301 $this->wait_element_exist_by_inner_html($inner_html,$exactly,$frame);1302 $params = array( "inner_html" => $inner_html , "exactly" => $exactly , "frame" => $frame );1303 return $this->call_get(__FUNCTION__,$params);1304 }1305 protected function z_get_y_by_href($href,$exactly,$frame)1306 {1307 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);1308 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame );1309 return $this->call_get(__FUNCTION__,$params);1310 } 1311 protected function z_get_y_by_attribute($attr_name,$attr_value,$exactly,$frame)1312 {1313 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1314 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame );1315 return $this->call_get(__FUNCTION__,$params);1316 } 1317 1318 protected function z_get_count($frame=-1)1319 {1320 $params = array( "frame" => $frame );1321 return $this->call_get(__FUNCTION__,$params);1322 }1323 protected function z_get_all_inner_texts($separator,$text_filter,$frame=-1)1324 {1325 $params = array( "separator" => $separator , "text_filter" => $text_filter , "frame" => $frame);1326 return $this->call_get(__FUNCTION__,$params);1327 }1328 protected function z_get_all_inner_texts_by_href($href,$separator,$exactly,$frame)1329 {1330 $params = array( "href" => $href , "separator" => $separator , "exactly" => $exactly , "frame" => $frame);1331 return $this->call_get(__FUNCTION__,$params);1332 }1333 protected function z_get_all_inner_texts_in_frame($frame, $separator="<br>")1334 {1335 return $this->call("$this->prefix.GetAllInnerTextsInFrame?separator=".base64_encode($separator)."&frame=".base64_encode($frame));1336 } 1337 protected function z_get_all_numbers_by_inner_text($text,$exactly=false,$frame=-1)1338 {1339 $separator="<@@@b@r@@@>";1340 $params = array( "text" => $text , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1341 $res=$this->call_get(__FUNCTION__,$params);1342 if ($res=="")1343 return array();1344 return explode($separator,$res);1345 } 1346 protected function z_get_all_numbers_by_inner_html($html,$exactly=false,$frame=-1)1347 {1348 $separator="<@@@b@r@@@>";1349 $params = array( "html" => $html , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1350 $res=$this->call_get(__FUNCTION__,$params);1351 if ($res=="")1352 return array();1353 return explode($separator,$res);1354 } 1355 protected function z_get_all_inner_htmls_by_inner_text($text,$exactly=false,$frame=-1)1356 {1357 $separator="<@@@b@r@@@>";1358 $params = array( "text" => $text , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1359 $res=$this->call_get(__FUNCTION__,$params);1360 if ($res=="")1361 return array();1362 return explode($separator,$res);1363 } 1364 protected function z_get_all_attributes_by_inner_text($attr_name_need,$text,$exactly=false,$frame=-1)1365 {1366 $separator="<@@@b@r@@@>";1367 $params = array( "attr_name_need" => $attr_name_need ,"text" => $text , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1368 $res=$this->call_get(__FUNCTION__,$params);1369 if ($res=="")1370 return array();1371 return explode($separator,$res);1372 }1373 1374 protected function z_get_all_numbers_by_attribute($attr_name,$attr_value,$exactly=false,$frame=-1)1375 {1376 $separator="<@@@b@r@@@>";1377 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1378 $res=$this->call_get(__FUNCTION__,$params);1379 if ($res=="")1380 return array();1381 return explode($separator,$res);1382 } 1383 protected function z_get_all_inner_texts_by_attribute($attr_name,$attr_value,$exactly=false,$frame=-1)1384 {1385 $separator="<@@@b@r@@@>";1386 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1387 $res=$this->call_get(__FUNCTION__,$params);1388 if ($res=="")1389 return array();1390 return explode($separator,$res);1391 } 1392 protected function z_get_all_inner_htmls_by_attribute($attr_name,$attr_value,$exactly=false,$frame=-1)1393 {1394 $separator="<@@@b@r@@@>";1395 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1396 $res=$this->call_get(__FUNCTION__,$params);1397 if ($res=="")1398 return array();1399 return explode($separator,$res);1400 } 1401 protected function z_get_all_attributes_by_attribute($attr_name_need,$attr_name,$attr_value,$exactly=false,$frame=-1)1402 {1403 $separator="<@@@b@r@@@>";1404 $params = array( "attr_name_need" => $attr_name_need , "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "separator" => $separator , "frame" => $frame);1405 $res=$this->call_get(__FUNCTION__,$params);1406 if ($res=="")1407 return array();1408 return explode($separator,$res);1409 } 1410 1411 protected function z_get_width_by_number($number,$frame)1412 {1413 $this->wait_element_exist_by_number($number,$frame);1414 $params = array( "number" => $number , "frame" => $frame);1415 return $this->call_get(__FUNCTION__,$params);1416 }1417 protected function z_get_width_by_name($name,$frame)1418 {1419 $this->wait_element_exist_by_name($name,$frame);1420 $params = array( "name" => $name , "frame" => $frame);1421 return $this->call_get(__FUNCTION__,$params);1422 }1423 protected function z_get_width_by_href($href,$exactly,$frame)1424 {1425 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);1426 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame);1427 return $this->call_get(__FUNCTION__,$params);1428 }1429 protected function z_get_width_by_src($src,$exactly,$frame)1430 {1431 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);1432 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame);1433 return $this->call_get(__FUNCTION__,$params);1434 }1435 protected function z_get_width_by_attribute($attr_name,$attr_value,$exactly,$frame)1436 {1437 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1438 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame);1439 return $this->call_get(__FUNCTION__,$params);1440 }1441 protected function z_get_height_by_number($number,$frame)1442 {1443 $this->wait_element_exist_by_number($number,$frame);1444 $params = array( "number" => $number , "frame" => $frame);1445 return $this->call_get(__FUNCTION__,$params);1446 }1447 protected function z_get_height_by_name($name,$frame)1448 {1449 $this->wait_element_exist_by_name($name,$frame);1450 $params = array( "name" => $name , "frame" => $frame);1451 return $this->call_get(__FUNCTION__,$params);1452 }1453 protected function z_get_height_by_href($href,$exactly,$frame)1454 {1455 $this->wait_element_exist_by_attribute("href",$href,$exactly,$frame);1456 $params = array( "href" => $href , "exactly" => $exactly , "frame" => $frame);1457 return $this->call_get(__FUNCTION__,$params);1458 }1459 protected function z_get_height_by_src($src,$exactly,$frame)1460 {1461 $this->wait_element_exist_by_attribute("src",$src,$exactly,$frame);1462 $params = array( "src" => $src , "exactly" => $exactly , "frame" => $frame);1463 return $this->call_get(__FUNCTION__,$params);1464 }1465 protected function z_get_height_by_attribute($attr_name,$attr_value,$exactly,$frame)1466 {1467 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame);1468 $params = array( "attr_name" => $attr_name , "attr_value" => $attr_value , "exactly" => $exactly , "frame" => $frame);1469 return $this->call_get(__FUNCTION__,$params);1470 }1471 };1472?>...
xhe_base_dom.php
Source:xhe_base_dom.php
...18 else19 return false;20 }21 // click on element by inner text22 function z_click_by_inner_text($text,$exactly)23 {24 if ($this->call("$this->prefix.ClickByInnerText?text=".urlencode($text)."&exactly=".urlencode($exactly))=="true")25 return true;26 else27 return false;28 }29 // click on element by href30 function z_click_by_href($url,$exactly)31 {32 if ($this->call("$this->prefix.ClickByHRef?url=".urlencode($url)."&exactly=".urlencode($exactly))=="true")33 return true;34 else35 return false;36 } 37 // click on element by any atribute38 function z_click_by_atribute($attr_name,$attr_value,$exactly)39 {40 if ($this->call("$this->prefix.ClickByAttr?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly))=="true")41 return true;42 else43 return false;44 } 45 // click on random element46 function z_click_random()47 {48 if ($this->call("$this->prefix.ClickRandom")=="true")49 return true;50 else51 return false;52 }53 // click on all elements54 function z_click_all()55 {56 if ($this->call("$this->prefix.ClickAll")=="true")57 return true;58 else59 return false;60 }61 // click on random element62 function z_click_random_in_frame($frame)63 {64 if ($this->call("$this->prefix.ClickRandomInFrame?frame=".urlencode($frame))=="true")65 return true;66 else67 return false;68 }69 //////////////////////////////////////////////////////////// SEND EVENT ///////////////////////////////////////////////////70 // send event to element by name71 function z_send_event_by_name($name,$event)72 {73 if ($this->call("$this->prefix.EventByName?name=".urlencode($name)."&event=".urlencode($event))=="true")74 return true;75 else76 return false;77 }78 // send event to element by number 79 function z_send_event_by_number($number,$event)80 {81 if ($this->call("$this->prefix.EventByNumber?number=".urlencode($number)."&event=".urlencode($event))=="true")82 return true;83 else84 return false;85 }86 // send event to element by inner text87 function z_send_event_by_inner_text($text,$exactly,$event)88 {89 if ($this->call("$this->prefix.EventByInnerText?text=".urlencode($text)."&exactly=".urlencode($exactly)."&event=".urlencode($event))=="true")90 return true;91 else92 return false;93 }94 // send event to element by href95 function z_send_event_by_href($url,$exactly,$event)96 {97 if ($this->call("$this->prefix.EventByHRef?url=".urlencode($url)."&exactly=".urlencode($exactly)."&event=".urlencode($event))=="true")98 return true;99 else100 return false;101 }102 // send event to element by any atribute103 function z_send_event_by_atribute($attr_name,$attr_value,$exactly,$event)104 {105 if ($this->call("$this->prefix.EventByAttr?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly)."&event=".urlencode($event))=="true")106 return true;107 else108 return false;109 }110 //////////////////////////////////////////////////////////// GET X Y ///////////////////////////////////////////////////111 // get x of element by name112 function z_get_x_by_name($name)113 {114 return $this->call("$this->prefix.GetXByName?name=".urlencode($name));115 }116 // get x of element by number 117 function z_get_x_by_number($number)118 {119 return $this->call("$this->prefix.GetXByNumber?number=".urlencode($number));120 }121 // get x of element by inner text122 function z_get_x_by_inner_text($text,$exactly)123 {124 return $this->call("$this->prefix.GetXByInnerText?text=".urlencode($text)."&exactly=".urlencode($exactly));125 }126 // get x of element by href127 function z_get_x_by_href($href,$exactly)128 {129 return $this->call("$this->prefix.GetXByHref?href=".urlencode($href)."&exactly=".urlencode($exactly));130 } 131 // get x of element by any atribute132 function z_get_x_by_atribute($attr_name,$attr_value,$exactly)133 {134 return $this->call("$this->prefix.GetXByAttr?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly));135 }136 // get y of element by name137 function z_get_y_by_name($name)138 {139 return $this->call("$this->prefix.GetYByName?name=".urlencode($name));140 }141 // get y of element by number 142 function z_get_y_by_number($number)143 {144 return $this->call("$this->prefix.GetYByNumber?number=".urlencode($number));145 }146 // get y of element by inner text147 function z_get_y_by_inner_text($text,$exactly)148 {149 return $this->call("$this->prefix.GetYByInnerText?text=".urlencode($text)."&exactly=".urlencode($exactly));150 }151 // get y of element by href152 function z_get_y_by_href($href,$exactly)153 {154 return $this->call("$this->prefix.GetYByHref?href=".urlencode($href)."&exactly=".urlencode($exactly));155 } 156 // get y of element by any atribute157 function z_get_y_by_atribute($attr_name,$attr_value,$exactly)158 {159 return $this->call("$this->prefix.GetYByAttr?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly));160 } 161 //////////////////////////////////////////////////////////// SEND EVENT IN FRAME ///////////////////////////////////////////////////162 // send event to element by name163 function z_send_event_by_name_in_frame($name,$event,$frame)164 {165 if ($this->call("$this->prefix.EventByNameInFrame?name=".urlencode($name)."&event=".urlencode($event)."&frame=".urlencode($frame))=="true")166 return true;167 else168 return false;169 }170 // send event to element by number 171 function z_send_event_by_number_in_frame($number,$event,$frame)172 {173 if ($this->call("$this->prefix.EventByNumberInFrame?number=".urlencode($number)."&event=".urlencode($event)."&frame=".urlencode($frame))=="true")174 return true;175 else176 return false;177 }178 // send event to element by inner text179 function z_send_event_by_inner_text_in_frame($text,$exactly,$event,$frame)180 {181 if ($this->call("$this->prefix.EventByInnerTextInFrame?text=".urlencode($text)."&exactly=".urlencode($exactly)."&event=".urlencode($event)."&frame=".urlencode($frame))=="true")182 return true;183 else184 return false;185 }186 // send event to element by href187 function z_send_event_by_href_in_frame($url,$exactly,$event,$frame)188 {189 if ($this->call("$this->prefix.EventByHRefInFrame?url=".urlencode($url)."&exactly=".urlencode($exactly)."&event=".urlencode($event)."&frame=".urlencode($frame))=="true")190 return true;191 else192 return false;193 }194 // send event to element by any atribute195 function z_send_event_by_atribute_in_frame($attr_name,$attr_value,$exactly,$event,$frame)196 {197 if ($this->call("$this->prefix.EventByAttrInFrame?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly)."&event=".urlencode($event)."&frame=".urlencode($frame))=="true")198 return true;199 else200 return false;201 }202 /////////////////////////////////////////////////////////// IS EXIST /////////////////////////////////////////////////////////////////////////////// 203 // is element exist by name204 function z_is_exist_with_name($name)205 {206 if ($this->call("$this->prefix.IsExistByName?name=".urlencode($name))=="true")207 return true;208 else209 return false;210 }211 // is element exist by inner text212 function z_is_exist_with_inner_text($text,$exactly)213 {214 if ($this->call("$this->prefix.IsExistsWithInnerText?text=".urlencode($text)."&exactly=".urlencode($exactly))=="true")215 return true;216 else217 return false;218 } 219 // is element exist by href220 function z_is_exist_with_href($href,$exactly)221 {222 if ($this->call("$this->prefix.IsExistsWithHref?href=".urlencode($href)."&exactly=".urlencode($exactly))=="true")223 return true;224 else225 return false;226 } 227 // is element exist by attribute228 function z_is_exist_with_attribute($attr_name,$attr_value,$exactly)229 {230 if ($this->call("$this->prefix.IsExistsWithAttr?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly))=="true")231 return true;232 else233 return false;234 }235 /////////////////////////////////////////////////////////// IS EXIST IN FRAME/////////////////////////////////////////////////////////////////////////////// 236 // is element exist by name in frame237 function z_is_exist_with_name_in_frame($name,$frame)238 {239 if ($this->call("$this->prefix.IsExistByNameInFrame?name=".urlencode($name)."&frame=".urlencode($frame))=="true")240 return true;241 else242 return false;243 }244 // is element exist by inner text in frame245 function z_is_exist_with_inner_text_in_frame($text,$frame,$exactly)246 {247 if ($this->call("$this->prefix.IsExistsWithInnerTextInFrame?text=".urlencode($text)."&frame=".urlencode($frame)."&exactly=".urlencode($exactly))=="true")248 return true;249 else250 return false;251 } 252 // is element exist by href in frame253 function z_is_exist_with_href_in_frame($href,$frame,$exactly)254 {255 if ($this->call("$this->prefix.IsExistsWithHrefInFrame?href=".urlencode($href)."&frame=".urlencode($frame)."&exactly=".urlencode($exactly))=="true")256 return true;257 else258 return false;259 } 260 // is element exist by attribute in frame261 function z_is_exist_with_attribute_in_frame($attr_name,$attr_value,$frame,$exactly)262 {263 if ($this->call("$this->prefix.IsExistsWithAttrInFrame?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&frame=".urlencode($frame)."&exactly=".urlencode($exactly))=="true")264 return true;265 else266 return false;267 }268 /////////////////////////////////////////////////////////// IS DISABLE /////////////////////////////////////////////////////////////////////////////// 269 // is disabled by number270 function z_is_disabled_by_number($number)271 {272 if ($this->call("$this->prefix.IsDisabledByNumber?number=".urlencode($number))=="true")273 return true;274 else275 return false;276 }277 // is disabled by name278 function z_is_disabled_by_name($name)279 {280 if ($this->call("$this->prefix.IsDisabledByName?name=".urlencode($name))=="true")281 return true;282 else283 return false;284 }285 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////286 // remove atribute by name287 function z_remove_atribute_by_name($name,$name_attr)288 {289 $res = $this->call("$this->prefix.RemoveAtributeByName?name=".urlencode($name)."&name_attr=".urlencode($name_attr));290 if ($res =="false")291 return false;292 else293 return $res;294 }295 // remove atribute by number296 function z_remove_atribute_by_number($number,$name_attr)297 {298 $res = $this->call("$this->prefix.RemoveAtributeByNumber?number=".urlencode($number)."&name_attr=".urlencode($name_attr));299 if ($res =="false")300 return false;301 else302 return $res;303 }304 // remove atribute by name305 function z_remove_atribute_by_name_in_frame($name,$name_attr,$frame_number)306 {307 $res = $this->call("$this->prefix.RemoveAtributeByNameInFrame?name=".urlencode($name)."&name_attr=".urlencode($name_attr)."&frame_number=".urlencode($frame_number));308 if ($res =="false")309 return false;310 else311 return $res;312 }313 // remove atribute by number314 function z_remove_atribute_by_number_in_frame($number,$name_attr,$frame_number)315 {316 $res= $this->call("$this->prefix.RemoveAtributeByNumberInFrame?number=".urlencode($number)."&name_attr=".urlencode($name_attr)."&frame_number=".urlencode($frame_number));317 if ($res =="false")318 return false;319 else320 return $res;321 }322 // remove atribute by atribute in frame by number323 function z_remove_atribute_by_atribute_in_frame_by_number($attr_name,$attr_value,$exactly,$name_attr,$frame_number)324 {325 $res = $this->call("$this->prefix.RemoveAtributeByAttributeInFrameByNumber?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly)."&name_attr=".urlencode($name_attr)."&frame_number=".urlencode($frame_number));326 if ($res =="false")327 return false;328 else329 return $res;330 }331 // add (or set) atribute by number332 function z_add_atribute_by_number($number,$name_attr,$value_attr)333 {334 $res = $this->call("$this->prefix.AddAtributeByNumber?number=".urlencode($number)."&name_attr=".urlencode($name_attr)."&value_attr=".urlencode($value_attr));335 if ($res =="false")336 return false;337 else338 return $res;339 }340 // add (or set) atribute by atribute341 function z_add_atribute_by_atribute($attr_name,$attr_value,$exactly,$name_attr,$value_attr)342 {343 $res = $this->call("$this->prefix.AddAtributeByAttribute?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly)."&name_attr=".urlencode($name_attr)."&value_attr=".urlencode($value_attr));344 if ($res =="false")345 return false;346 else347 return $res;348 }349 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////350 // get count of elements on page351 function z_get_count()352 {353 return $this->call("$this->prefix.GetCount");354 }355 // get inner texts of all elements on page356 function z_get_all_inner_texts($separator="<br>")357 {358 return $this->call("$this->prefix.GetAllInnerTexts?separator=".urlencode($separator));359 }360 // get inner texts of all elements on page in frame361 function z_get_all_inner_texts_in_frame($frame, $separator="<br>")362 {363 return $this->call("$this->prefix.GetAllInnerTextsInFrame?separator=".urlencode($separator)."&frame=".urlencode($frame));364 } 365 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////366 // get name by number367 function z_get_name_by_number($number)368 {369 return $this->call("$this->prefix.GetNameByNumber?number=".urlencode($number));370 }371 // get number by name372 function z_get_number_by_name($name)373 {374 return $this->call("$this->prefix.GetNumberByName?name=".urlencode($name));375 }376 // get number by inner text377 function z_get_number_by_inner_text($innertext,$exactly=true)378 {379 return $this->call("$this->prefix.GetNumberByInnerText?innertext=".urlencode($innertext)."&exactly=".urlencode($exactly));380 }381 // get number by atribute382 function z_get_number_by_atribute($attr_name,$attr_value,$exactly=true)383 {384 return $this->call("$this->prefix.GetNumberByAtribute?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly));385 }386 // get inner text by name387 function z_get_inner_text_by_name($name)388 {389 return $this->call("$this->prefix.GetInnerTextByName?name=".urlencode($name));390 }391 // get inner text by number392 function z_get_inner_text_by_number($number)393 {394 return $this->call("$this->prefix.GetInnerTextByNumber?number=".urlencode($number));395 }396 // get inner text by name397 function z_get_inner_text_by_href($href,$exactly=true)398 {399 return $this->call("$this->prefix.GetInnerTextByHref?href=".urlencode($href)."&exactly=".urlencode($exactly));400 }401 // get href by name402 function z_get_href_by_name($name)403 {404 return $this->call("$this->prefix.GetHRefByName?name=".urlencode($name));405 }406 // get href by number407 function z_get_href_by_number($number)408 {409 return $this->call("$this->prefix.GetHRefByNumber?number=".urlencode($number));410 }411 // get href by inner text412 function z_get_href_by_inner_text($inner_text,$exactly=false)413 {414 return $this->call("$this->prefix.GetHRefByInnerText?inner_text=".urlencode($inner_text)."&exactly=".urlencode($exactly));415 }416 // get atribute by name417 function z_get_atribute_by_name($name,$name_attr)418 {419 $res = $this->call("$this->prefix.GetAtributeByName?name=".urlencode($name)."&name_attr=".urlencode($name_attr));420 if ($res =="false")421 return false;422 else423 return $res;424 }425 // get atribute by number426 function z_get_atribute_by_number($number,$name_attr)427 {428 $res = $this->call("$this->prefix.GetAtributeByNumber?number=".urlencode($number)."&name_attr=".urlencode($name_attr));429 if ($res =="false")430 return false;431 else432 return $res;433 }434 // get atribute by atribute435 function z_get_atribute_by_atribute($attr_name,$attr_value,$exactly,$name_attr)436 {437 $res = $this->call("$this->prefix.GetAtributeByAttribute?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly)."&name_attr=".urlencode($name_attr));438 if ($res =="false")439 return false;440 else441 return $res;442 }443 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////444 // set focus to element by name445 function z_set_focus_by_name($name)446 {447 if ($this->call("$this->prefix.SetFocusByName?name=".urlencode($name))=="true")448 return true;449 else450 return false;451 }452 // set focus to element by name453 function z_set_focus_by_number($number)454 {455 if ($this->call("$this->prefix.SetFocusByNumber?number=".urlencode($number))=="true")456 return true;457 else458 return false;459 }460 // set focus to element by inner text461 function z_set_focus_by_inner_text($innertext,$exactly=true)462 {463 if ($this->call("$this->prefix.SetFocusByInnerText?innertext=".urlencode($innertext)."&exactly=".urlencode($exactly))=="true")464 return true;465 else466 return false;467 }468 // set focus to element by href469 function z_set_focus_by_href($href,$exactly=true)470 {471 if ($this->call("$this->prefix.SetFocusByHref?href=".urlencode($href)."&exactly=".urlencode($exactly))=="true")472 return true;473 else474 return false;475 }476 // set focus to element by atribute477 function z_set_focus_by_atribute($attr_name,$attr_value,$exactly=true)478 {479 if ($this->call("$this->prefix.SetFocusByAttr?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&exactly=".urlencode($exactly))=="true")480 return true;481 else482 return false;483 }484 //////////////////////////////////////////////////////////////// SET INNER TEXT //////////////////////////////////////////////////////////////////////485 // set inner text by name486 function z_set_inner_text_by_name($name,$text,$frame)487 {488 if ($this->call("$this->prefix.SetInnerTextByName?name=".urlencode($name)."&text=".urlencode($text)."&frame=".urlencode($frame))=="true")489 return true;490 else491 return false;492 }493 // set inner text by number 494 function z_set_inner_text_by_number($number,$text,$frame)495 {496 if ($this->call("$this->prefix.SetInnerTextByNumber?number=".urlencode($number)."&text=".urlencode($text)."&frame=".urlencode($frame))=="true")497 return true;498 else499 return false;500 } 501 // set inner text by any atribute502 function z_set_inner_text_by_atribute($attr_name,$attr_value,$text,$exactly,$frame)503 {504 if ($this->call("$this->prefix.SetInnerTextByAttribute?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&text=".urlencode($text)."&exactly=".urlencode($exactly)."&frame=".urlencode($frame))=="true")505 return true;506 else507 return false;508 }509 //////////////////////////////////////////////////////////////// SET INNER HTML //////////////////////////////////////////////////////////////////////510 // set inner html by name511 function z_set_inner_html_by_name($name,$html,$frame)512 {513 if ($this->call("$this->prefix.SetInnerHtmlByName?name=".urlencode($name)."&html=".urlencode($html)."&frame=".urlencode($frame))=="true")514 return true;515 else516 return false;517 }518 // set inner html by number 519 function z_set_inner_html_by_number($number,$html,$frame)520 {521 if ($this->call("$this->prefix.SetInnerHtmlByNumber?number=".urlencode($number)."&html=".urlencode($html)."&frame=".urlencode($frame))=="true")522 return true;523 else524 return false;525 } 526 // set inner html by any atribute527 function z_set_inner_html_by_atribute($attr_name,$attr_value,$html,$exactly,$frame)528 {529 if ($this->call("$this->prefix.SetInnerHtmlByAttribute?attr_name=".urlencode($attr_name)."&attr_value=".urlencode($attr_value)."&html=".urlencode($html)."&exactly=".urlencode($exactly)."&frame=".urlencode($frame))=="true")530 return true;531 else532 return false;533 }534}535?>...
XheSelectelement.php
Source:XheSelectelement.php
...21 $this->wait_element_exist_by_name($name,$frame); 22 $params = array("name" => $name, "index" => $index , "frame" => $frame);23 return $this->call_boolean(__FUNCTION__,$params); 24 }25 function select_index_by_attribute($attr_name,$attr_value,$exactly_attr,$index,$frame=-1)26 {27 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly_attr,$frame); 28 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "index" => $index , "frame" => $frame);29 return $this->call_boolean(__FUNCTION__,$params); 30 }31 function select_text_by_number($number,$text,$exactly=true,$frame=-1)32 {33 $this->wait_element_exist_by_number($number,$frame); 34 $params = array("number" => $number, "text" => $text , "exactly" => $exactly , "frame" => $frame);35 return $this->call_boolean(__FUNCTION__,$params); 36 }37 function select_text_by_name($name,$text,$exactly=true,$frame=-1)38 {39 $this->wait_element_exist_by_name($name,$frame); 40 $params = array("name" => $name, "text" => $text , "exactly" => $exactly , "frame" => $frame);41 return $this->call_boolean(__FUNCTION__,$params); 42 }43 function select_text_by_attribute($attr_name,$attr_value,$exactly_attr,$text,$exactly=true,$frame=-1)44 {45 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly_attr,$frame); 46 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "text" => $text , "exactly" => $exactly , "frame" => $frame);47 return $this->call_boolean(__FUNCTION__,$params); 48 }49 function select_value_by_number($number,$value,$exactly=true,$frame=-1)50 {51 $this->wait_element_exist_by_number($number,$frame); 52 $params = array("number" => $number, "value" => $value , "exactly" => $exactly , "frame" => $frame);53 return $this->call_boolean(__FUNCTION__,$params); 54 }55 function select_value_by_name($name,$value,$exactly=true,$frame=-1)56 {57 $this->wait_element_exist_by_name($name,$frame); 58 $params = array("name" => $name, "value" => $value , "exactly" => $exactly , "frame" => $frame);59 return $this->call_boolean(__FUNCTION__,$params); 60 }61 function select_value_by_attribute($attr_name,$attr_value,$exactly_attr,$value,$exactly=true,$frame=-1)62 {63 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly_attr,$frame); 64 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "value" => $value , "exactly" => $exactly , "frame" => $frame);65 return $this->call_boolean(__FUNCTION__,$params); 66 }67 function select_index_by_attribute_by_form_number($attr_name,$attr_value,$exactly_attr,$index,$form_number,$frame=-1)68 {69 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "index" => $index , "form_number" => $form_number , "frame" => $frame);70 return $this->call_boolean(__FUNCTION__,$params); 71 }72 function select_index_by_attribute_by_form_name($attr_name,$attr_value,$exactly_attr,$index,$form_name,$frame=-1)73 {74 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "index" => $index , "form_name" => $form_name , "frame" => $frame);75 return $this->call_boolean(__FUNCTION__,$params); 76 }77 function select_text_by_attribute_by_form_number($attr_name,$attr_value,$exactly_attr,$text,$exactly,$form_number,$frame=-1)78 {79 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "text" => $text , "exactly" => $exactly , "form_number" => $form_number , "frame" => $frame);80 return $this->call_boolean(__FUNCTION__,$params); 81 }82 function select_text_by_attribute_by_form_name($attr_name,$attr_value,$exactly_attr,$text,$exactly,$form_name,$frame=-1)83 {84 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "text" => $text , "exactly" => $exactly , "form_name" => $form_name , "frame" => $frame);85 return $this->call_boolean(__FUNCTION__,$params); 86 }87 function select_value_by_attribute_by_form_number($attr_name,$attr_value,$exactly_attr,$value,$exactly,$form_number,$frame=-1)88 {89 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "value" => $value , "exactly" => $exactly , "form_number" => $form_number , "frame" => $frame);90 return $this->call_boolean(__FUNCTION__,$params); 91 }92 function select_value_by_attribute_by_form_name($attr_name,$attr_value,$exactly_attr,$value,$exactly,$form_name,$frame=-1)93 {94 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr, "value" => $value , "exactly" => $exactly , "form_name" => $form_name , "frame" => $frame);95 return $this->call_boolean(__FUNCTION__,$params); 96 }97 function select_random_by_number($number,$frame=-1)98 {99 $this->wait_element_exist_by_number($number,$frame); 100 $params = array("number" => $number, "frame" => $frame);101 return $this->call_boolean(__FUNCTION__,$params); 102 }103 function select_random_by_name($name,$frame=-1)104 {105 $this->wait_element_exist_by_name($name,$frame); 106 $params = array("name" => $name, "frame" => $frame);107 return $this->call_boolean(__FUNCTION__,$params); 108 }109 function select_random_by_attribute($attr_name,$attr_value,$exactly_attr=true,$frame=-1)110 {111 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly_attr,$frame);112 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly_attr" => $exactly_attr , "frame" => $frame);113 return $this->call_boolean(__FUNCTION__,$params); 114 }115 116 function multi_select_indexes_by_number($number,$indexes,$frame=-1)117 {118 $this->wait_element_exist_by_number($number,$frame); 119 $params = array("number" => $number, "indexes" => $indexes , "frame" => $frame );120 return $this->call_boolean(__FUNCTION__,$params); 121 }122 function multi_select_indexes_by_name($name,$indexes,$frame=-1)123 {124 $this->wait_element_exist_by_name($name,$frame); 125 $params = array("name" => $name, "indexes" => $indexes , "frame" => $frame );126 return $this->call_boolean(__FUNCTION__,$params); 127 }128 function multi_select_values_by_number($number,$values,$frame=-1)129 {130 $this->wait_element_exist_by_number($number,$frame); 131 $params = array("number" => $number, "values" => $values , "frame" => $frame );132 return $this->call_boolean(__FUNCTION__,$params); 133 }134 function multi_select_values_by_name($name,$values,$frame=-1)135 {136 $this->wait_element_exist_by_name($name,$frame); 137 $params = array("name" => $name, "values" => $values , "frame" => $frame );138 return $this->call_boolean(__FUNCTION__,$params); 139 }140 function multi_select_texts_by_number($number,$texts,$frame=-1)141 {142 $this->wait_element_exist_by_number($number,$frame); 143 $params = array("number" => $number, "texts" => $texts , "frame" => $frame );144 return $this->call_boolean(__FUNCTION__,$params); 145 }146 function multi_select_texts_by_name($name,$texts,$frame=-1)147 {148 $this->wait_element_exist_by_name($name,$frame); 149 $params = array("name" => $name, "texts" => $texts , "frame" => $frame );150 return $this->call_boolean(__FUNCTION__,$params); 151 }152 153 function get_selected_index_by_number($number,$frame=-1)154 {155 $this->wait_element_exist_by_number($number,$frame); 156 $params = array("number" => $number, "frame" => $frame);157 return $this->call_get(__FUNCTION__,$params); 158 }159 function get_selected_index_by_name($name,$frame=-1)160 {161 $this->wait_element_exist_by_name($name,$frame); 162 $params = array("name" => $name, "frame" => $frame);163 return $this->call_get(__FUNCTION__,$params); 164 }165 function get_selected_index_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)166 {167 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 168 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);169 return $this->call_get(__FUNCTION__,$params); 170 }171 function get_selected_text_by_number($number,$frame=-1)172 {173 $this->wait_element_exist_by_number($number,$frame); 174 $params = array("number" => $number, "frame" => $frame);175 return $this->call_get(__FUNCTION__,$params); 176 }177 function get_selected_text_by_name($name,$frame=-1)178 {179 $this->wait_element_exist_by_name($name,$frame); 180 $params = array("name" => $name, "frame" => $frame);181 return $this->call_get(__FUNCTION__,$params); 182 }183 function get_selected_text_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)184 {185 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 186 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);187 return $this->call_get(__FUNCTION__,$params); 188 }189 190 function get_size_by_number($number,$frame=-1)191 {192 $this->wait_element_exist_by_number($number,$frame); 193 $params = array("number" => $number, "frame" => $frame);194 return $this->call_get(__FUNCTION__,$params); 195 }196 function get_size_by_name($name,$frame=-1)197 {198 $this->wait_element_exist_by_name($name,$frame); 199 $params = array("name" => $name, "frame" => $frame);200 return $this->call_get(__FUNCTION__,$params); 201 }202 function get_size_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)203 {204 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 205 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);206 return $this->call_get(__FUNCTION__,$params); 207 }208 function get_length_by_number($number,$frame=-1)209 {210 $this->wait_element_exist_by_number($number,$frame); 211 $params = array("number" => $number, "frame" => $frame);212 return $this->call_get(__FUNCTION__,$params); 213 }214 function get_length_by_name($name,$frame=-1)215 {216 $this->wait_element_exist_by_name($name,$frame); 217 $params = array("name" => $name, "frame" => $frame);218 return $this->call_get(__FUNCTION__,$params); 219 }220 function get_length_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)221 {222 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 223 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);224 return $this->call_get(__FUNCTION__,$params); 225 }226 function get_type_by_number($number,$frame=-1)227 {228 $this->wait_element_exist_by_number($number,$frame); 229 $params = array("number" => $number, "frame" => $frame);230 return $this->call_get(__FUNCTION__,$params); 231 }232 function get_type_by_name($name,$frame=-1)233 {234 $this->wait_element_exist_by_name($name,$frame); 235 $params = array("name" => $name, "frame" => $frame);236 return $this->call_get(__FUNCTION__,$params); 237 }238 function get_type_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)239 {240 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 241 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);242 return $this->call_get(__FUNCTION__,$params); 243 }244 function get_all_texts_by_number($number,$frame=-1)245 {246 $this->wait_element_exist_by_number($number,$frame); 247 $params = array("number" => $number, "frame" => $frame);248 return $this->call_get(__FUNCTION__,$params); 249 }250 function get_all_texts_by_name($name,$frame=-1)251 {252 $this->wait_element_exist_by_name($name,$frame); 253 $params = array("name" => $name, "frame" => $frame);254 return $this->call_get(__FUNCTION__,$params); 255 }256 function get_all_texts_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)257 {258 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 259 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);260 return $this->call_get(__FUNCTION__,$params); 261 }262 function get_all_values_by_number($number,$frame=-1)263 {264 $this->wait_element_exist_by_number($number,$frame); 265 $params = array("number" => $number, "frame" => $frame);266 return $this->call_get(__FUNCTION__,$params); 267 }268 function get_all_values_by_name($name,$frame=-1)269 {270 $this->wait_element_exist_by_name($name,$frame); 271 $params = array("name" => $name, "frame" => $frame);272 return $this->call_get(__FUNCTION__,$params); 273 }274 function get_all_values_by_attribute($attr_name,$attr_value,$exactly,$frame=-1)275 {276 $this->wait_element_exist_by_attribute($attr_name,$attr_value,$exactly,$frame); 277 $params = array("attr_name" => $attr_name, "attr_value" => $attr_value, "exactly" => $exactly, "frame" => $frame);278 return $this->call_get(__FUNCTION__,$params); 279 }280 281 function add_option_by_number($number,$text,$value,$frame=-1)282 {283 $this->wait_element_exist_by_number($number,$frame); 284 $params = array("number" => $number, "text" => $text , "value" => $value , "frame" => $frame);285 return $this->call_boolean(__FUNCTION__,$params);286 }287 function add_option_by_name($name,$text,$value,$frame=-1)288 {289 $this->wait_element_exist_by_name($name,$frame); 290 $params = array("name" => $name, "text" => $text , "value" => $value , "frame" => $frame);291 return $this->call_boolean(__FUNCTION__,$params);...
exactly
Using AI Code Generation
1$test = new Test();2$test->testMethod();3$test = new Test();4$test->testMethod();5$test = new Test();6$test->testMethod();7$test = new Test();8$test->testMethod();9$test = new Test();10$test->testMethod();11$test = new Test();12$test->testMethod();13$test = new Test();14$test->testMethod();15$test = new Test();16$test->testMethod();17$test = new Test();18$test->testMethod();19$test = new Test();20$test->testMethod();21$test = new Test();22$test->testMethod();23$test = new Test();24$test->testMethod();25$test = new Test();26$test->testMethod();27$test = new Test();28$test->testMethod();29$test = new Test();30$test->testMethod();31$test = new Test();32$test->testMethod();33$test = new Test();34$test->testMethod();
exactly
Using AI Code Generation
1$object = new ClassName();2$object->method();3$object = new ClassName();4$object->method();5$object = new ClassName();6$object->method();7$object = new ClassName();8$object->method();9$object = new ClassName();10$object->method();11$object = new ClassName();12$object->method();13$object = new ClassName();14$object->method();15$object = new ClassName();16$object->method();17$object = new ClassName();18$object->method();19$object = new ClassName();20$object->method();21$object = new ClassName();22$object->method();23$object = new ClassName();24$object->method();25$object = new ClassName();26$object->method();27$object = new ClassName();28$object->method();29$object = new ClassName();30$object->method();31$object = new ClassName();32$object->method();33$object = new ClassName();34$object->method();35$object = new ClassName();36$object->method();
exactly
Using AI Code Generation
1$object = new $class_name();2$object->method();3$object = new $class_name();4$object->method();5$object = new $class_name();6$object->method();7$object = new $class_name();8$object->method();9$object = new $class_name();10$object->method();11$object = new $class_name();12$object->method();13$object = new $class_name();14$object->method();15$object = new $class_name();16$object->method();17$object = new $class_name();18$object->method();19$object = new $class_name();20$object->method();21$object = new $class_name();22$object->method();23$object = new $class_name();24$object->method();25$object = new $class_name();26$object->method();27$object = new $class_name();28$object->method();29$object = new $class_name();30$object->method();31$object = new $class_name();32$object->method();33$object = new $class_name();34$object->method();
exactly
Using AI Code Generation
1include_once('class.php');2$test = new Test();3$test->test();4$test->test2();5$test->test3();6$test->test4();7$test->test5();8$test->test6();9$test->test7();10$test->test8();11$test->test9();12$test->test10();13$test->test11();14$test->test12();15$test->test13();16$test->test14();17$test->test15();18$test->test16();19$test->test17();20$test->test18();21$test->test19();22$test->test20();23$test->test21();24$test->test22();25$test->test23();26$test->test24();27$test->test25();28$test->test26();29$test->test27();30$test->test28();31$test->test29();32$test->test30();33$test->test31();34$test->test32();35$test->test33();36$test->test34();37$test->test35();38$test->test36();39$test->test37();40$test->test38();41$test->test39();42$test->test40();43$test->test41();44$test->test42();45$test->test43();46$test->test44();47$test->test45();48$test->test46();49$test->test47();50$test->test48();51$test->test49();52$test->test50();53$test->test51();54$test->test52();55$test->test53();56$test->test54();57$test->test55();58$test->test56();59$test->test57();60$test->test58();61$test->test59();62$test->test60();63$test->test61();64$test->test62();65$test->test63();66$test->test64();67$test->test65();68$test->test66();69$test->test67();70$test->test68();71$test->test69();72$test->test70();73$test->test71();74$test->test72();75$test->test73();76$test->test74();77$test->test75();78$test->test76();79$test->test77();80$test->test78();81$test->test79();82$test->test80();83$test->test81();
exactly
Using AI Code Generation
1require_once('2.php');2$test = new test();3$test->test();4class test{5 public function test(){6 echo "Test";7 }8}9require_once('2.php');10$test = new test();11$test->test();12class test{13 public function __construct(){14 echo "Test";15 }16}17require_once('2.php');18$test = new test();19$test->test();20class test{21 public function __call($name, $arguments){22 echo "Test";23 }24}25require_once('2.php');26$test = new test();27$test->test();28class test{29 public static function __callStatic($name, $arguments){30 echo "Test";31 }32}33require_once('2.php');34$test = new test();35$test->test();36class test{37 public function __invoke(){38 echo "Test";39 }40}41require_once('2.php');42$test = new test();43$test->test;44class test{45 public function __get($name){46 echo "Test";47 }48}49require_once('2.php');50$test = new test();51$test->test = "test";52class test{53 public function __set($name, $value){54 echo "Test";55 }56}57require_once('2.php');58$test = new test();59isset($test->test);60class test{61 public function __isset($name){62 echo "Test";63 }64}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Execute automation tests with exactly on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.
Test now for FreeGet 100 minutes of automation test minutes FREE!!