selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Selenium loads an URL using a HTTP POST request POST /session/:sessionId/url but in doc it is written as GET

Open amodmahajan2016 opened this issue 6 years ago • 4 comments

🐛 Bug Report

In official selenium doc, for get() method below is written :-

Load a new web page in the current browser window. This is done using an HTTP GET operation, and the method will block until the load is complete (with the default 'page load strategy'.

I think it is a type mistake as per GitHub page, it should be a POST and that works as well.

To Reproduce

Please launch linked official document.

Expected behavior

Doc should be updated with correct HTTP method i.e. POST

Test script or set of commands reproducing this issue

WebDriver drive r= new ChromeDriver(); driver.get("https://www.google.com/");

Environment

OS: Windows 10 Browser: Chrome Browser version: 81 Browser Driver version: Language Bindings version: Java Selenium Grid version (if applicable): 3.141.59

amodmahajan2016 avatar May 23 '20 04:05 amodmahajan2016

@amodmahajan2016 could you please provide the link of the pages you mention?

diemol avatar May 23 '20 09:05 diemol

GitHub reference - https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidurl

Selenium Java Doc - https://www.selenium.dev/selenium/docs/api/java/ Check get() method

amodmahajan2016 avatar May 23 '20 16:05 amodmahajan2016

Thank you for provicing the links.

Fixed in the linked commit, live docs will be available when the next release is done.

diemol avatar May 24 '20 13:05 diemol

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 24 '20 18:06 lock[bot]