14. Json Wire Protocol 仗亳从仍舒亟仆仂亶 仗亳仄亠 仂仄亳仂于舒仆亳亠 亰舒仗仂舒 S E L E N I U M http_type: POST url: http://localhost:4444/wd/hub/session/1232412/element { " using ":" id ", " value ":" edit-submit " } Array ( [ using ] => id [ value ] => edit-submit ) json
15. HTTP/1.1 200 OK Date: Sun, 05 Feb 2012 22:06:28 GMT Server: Jetty/5.1.x (Linux/2.6.32-38-generic i386 java/1.6.0_20 Content-Length: 138 Content-Type: application/json;charset=UTF-8 {"status":0,"sessionId":"1328478524467","value":{"ELEMENT":"2"}, "class":"org.openqa.selenium.remote.Response","hCode":5604828} Json Wire Protocol 仗亳从仍舒亟仆仂亶 仗亳仄亠 仗仂仍亠仆亳亠 仂于亠舒 S E L E N I U M
16. Array ( [ header ] => HTTP/1.1 200 OK Date: Sun, 05 Feb 2012 22:06:28 GMT Server: Jetty/5.1.x (Linux/2.6.32-38-generic i386 java/1.6.0_20 Content-Length: 138 Content-Type: application/json;charset=UTF-8 [ body ] => {" status ": 0 ," sessionId ":" 1328478524467 ", " value ":{" ELEMENT ":" 2 "},"class":"org.openqa.selenium.remote.Response", "hCode":5604828} ) json_decode Json Wire Protocol 仗亳从仍舒亟仆仂亶 仗亳仄亠 舒亰弍仂 仂于亠舒
21. 亠舒仍亳亰舒亳 PHP 仂弍亠从仆仂亶 仄仂亟亠仍亳 . 舒弍仂舒 c Element public function __construct( $driver , $element_id , $locator ) { $this-> driver = $driver ; } private function execute( $driver , $element_id , $locator ) { return $this-> driver ->execute( $http_type , $relative_url , $payload = null ); } public function click() { $this->execute(" POST ", " /click "); }
22. 亠舒仍亳亰舒亳 PHP 仂弍亠从仆仂亶 仄仂亟亠仍亳 . TestSuit PHPUnit 亳仆亠亞舒亳 class myTest extends PHPUnit_Framework_TestCase { public function setUp() { } public function test() { } public function tearDown() { } }
#3: Hi all, thank you for coming. My name is Maxime Topolov. Im CTO and co-founder of Adyax, european leader on Drupal. Ill try to introduce you Drupal.