@@ -419,8 +419,8 @@ def udid_name
419419
420420 module Mock
421421 HEADER = { 'Content-Type' => 'application/json; charset=utf-8' , 'Cache-Control' => 'no-cache' } . freeze
422- NOSESSION = 'http://127.0.0.1:4723/wd/hub '
423- SESSION = 'http://127.0.0.1:4723/wd/hub/ session/1234567890'
422+ NOSESSION = 'http://127.0.0.1:4723'
423+ SESSION = 'http://127.0.0.1:4723/session/1234567890'
424424
425425 def android_mock_create_session
426426 android_mock_create_session_w3c
@@ -443,7 +443,7 @@ def android_mock_create_session_w3c
443443 }
444444 } . to_json
445445
446- stub_request ( :post , 'http://127.0.0.1:4723/wd/hub/ session' )
446+ stub_request ( :post , 'http://127.0.0.1:4723/session' )
447447 . to_return ( headers : HEADER , status : 200 , body : response )
448448
449449 stub_request ( :post , "#{ SESSION } /timeouts" )
@@ -457,7 +457,7 @@ def android_mock_create_session_w3c
457457 assert_equal ( { } , driver . send ( :bridge ) . http . additional_headers )
458458 assert_requested (
459459 :post ,
460- 'http://127.0.0.1:4723/wd/hub/ session' ,
460+ 'http://127.0.0.1:4723/session' ,
461461 headers : {
462462 'X-Idempotency-Key' => /.+/ ,
463463 'Content-Type' => 'application/json; charset=UTF-8' ,
@@ -500,7 +500,7 @@ def android_chrome_mock_create_session_w3c
500500 }
501501 } . to_json
502502
503- stub_request ( :post , 'http://127.0.0.1:4723/wd/hub/ session' )
503+ stub_request ( :post , 'http://127.0.0.1:4723/session' )
504504 . to_return ( headers : HEADER , status : 200 , body : response )
505505
506506 stub_request ( :post , "#{ SESSION } /timeouts" )
@@ -512,7 +512,7 @@ def android_chrome_mock_create_session_w3c
512512 assert_equal ( { } , driver . send ( :bridge ) . http . additional_headers )
513513 assert_requested (
514514 :post ,
515- 'http://127.0.0.1:4723/wd/hub/ session' ,
515+ 'http://127.0.0.1:4723/session' ,
516516 headers : {
517517 'X-Idempotency-Key' => /.+/ ,
518518 'Content-Type' => 'application/json; charset=UTF-8' ,
@@ -558,14 +558,14 @@ def ios_mock_create_session_w3c
558558 }
559559 } . to_json
560560
561- stub_request ( :post , 'http://127.0.0.1:4723/wd/hub/ session' )
561+ stub_request ( :post , 'http://127.0.0.1:4723/session' )
562562 . to_return ( headers : HEADER , status : 200 , body : response )
563563
564564 driver = @core . start_driver
565565
566566 assert_requested (
567567 :post ,
568- 'http://127.0.0.1:4723/wd/hub/ session' ,
568+ 'http://127.0.0.1:4723/session' ,
569569 headers : {
570570 'X-Idempotency-Key' => /.+/ ,
571571 'Content-Type' => 'application/json; charset=UTF-8' ,
@@ -589,14 +589,14 @@ def windows_mock_create_session
589589 }
590590 } . to_json
591591
592- stub_request ( :post , 'http://127.0.0.1:4723/wd/hub/ session' )
592+ stub_request ( :post , 'http://127.0.0.1:4723/session' )
593593 . to_return ( headers : HEADER , status : 200 , body : response )
594594
595595 driver = @core . start_driver
596596
597597 assert_requested (
598598 :post ,
599- 'http://127.0.0.1:4723/wd/hub/ session' ,
599+ 'http://127.0.0.1:4723/session' ,
600600 headers : {
601601 'X-Idempotency-Key' => /.+/ ,
602602 'Content-Type' => 'application/json; charset=UTF-8' ,
@@ -620,14 +620,14 @@ def windows_mock_create_session_w3c
620620 }
621621 } . to_json
622622
623- stub_request ( :post , 'http://127.0.0.1:4723/wd/hub/ session' )
623+ stub_request ( :post , 'http://127.0.0.1:4723/session' )
624624 . to_return ( headers : HEADER , status : 200 , body : response )
625625
626626 driver = @core . start_driver
627627
628628 assert_requested (
629629 :post ,
630- 'http://127.0.0.1:4723/wd/hub/ session' ,
630+ 'http://127.0.0.1:4723/session' ,
631631 headers : {
632632 'X-Idempotency-Key' => /.+/ ,
633633 'Content-Type' => 'application/json; charset=UTF-8' ,
@@ -649,14 +649,14 @@ def mac2_mock_create_session_w3c
649649 }
650650 } . to_json
651651
652- stub_request ( :post , 'http://127.0.0.1:4723/wd/hub/ session' )
652+ stub_request ( :post , 'http://127.0.0.1:4723/session' )
653653 . to_return ( headers : HEADER , status : 200 , body : response )
654654
655655 driver = @core . start_driver
656656
657657 assert_requested (
658658 :post ,
659- 'http://127.0.0.1:4723/wd/hub/ session' ,
659+ 'http://127.0.0.1:4723/session' ,
660660 headers : {
661661 'X-Idempotency-Key' => /.+/ ,
662662 'Content-Type' => 'application/json; charset=UTF-8' ,
0 commit comments