question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Status endpoint

See original GitHub issue

What happened?

Someone pointed out that I incorrectly removed status endpoint from Python (still supported https://w3c.github.io/webdriver/#status). I removed it because no method was calling it. Need to make sure all the languages have methods that can call this endpoint. Don’t have time to investigate now and don’t want to forget.

How can we reproduce the issue?

driver.status

Relevant log output

none

Operating System

n/a

Selenium version

latest

What are the browser(s) and version(s) where you see this issue?

n/a

What are the browser driver(s) and version(s) where you see this issue?

n/a

Are you using Selenium Grid?

n/a

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:20 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
titusfortnercommented, Jul 6, 2022

We don’t need to do anything right now, just saying that if we are implementing something, it might make sense to ensure it works both locally and remotely, even when the use case is more obvious for remote.

1reaction
pujaganicommented, Jul 6, 2022

@titusfortner What you suggested is possible because of the way the WebDriver interface and RemoteWebDriver class are designed in the Java bindings. Since all driver classes inherit RemoteWebDriver, they have access to the static status endpoint as long as the service URL is provided.

ChromeDriverService service = new ChromeDriverService.Builder()
      .usingAnyFreePort()
      .build();

service.start();

Status status = ChromeDriver.status(service.getUrl());

if (status.isReady()) {
   ChromeDriver driver = new ChromeDriver(service);
   driver.get("http://google.com");
   driver.quit();
}

service.stop();

I will try and add a test to showcase this. However, C# implementation is slightly different and the PR changes only allow status API to be accessed from RemoteWebDriver. Once, we reach a consensus about how we want to access it, it can be easily updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Get Cisco Bug Status & Notifications
You can get view and subscribe to Cisco product defect updates for specific bugs that affect you or your deployment. Bug Status. Go...
Read more >
Jira 'status' endpoint response meanings
Jira has a '/status' endpoint which is a very lightweight endpoint that can be used by load balancers, other monitoring and admins to ......
Read more >
A guide to API health check - Testfully
API health check endpoint returns the operational status of the API ... minimize the risk associated with monitoring tool downtime and bug.
Read more >
Troubleshooting, API Status, and Health Checks - Arkose Labs!
On the server side, Verify API calls ensure that a valid token is present. An unexpectedly long response time or server side HTTP...
Read more >
HelmChart should use /readyz endpoint to check the ... - GitHub
The status endpoint as you can see in the Selenium ticket returns always ... [ 🐛 Bug]: HelmChart should use /readyz endpoint to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found