Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
/selenium-wirePublic archive

Add methods for deleting/clearing a single request only; add check_response parameter to wait_for_request#639

Open
IMayBeABitShy wants to merge3 commits intowkeeling:master
base:master
Choose a base branch
Loading
fromIMayBeABitShy:master

Conversation

@IMayBeABitShy
Copy link

Hi,

this PR does two things:

First, it adds a.clear_request_by_id(request_id) method to the storage classes, which allows deleting/clearing of a single request from the storage rather than deleting/clearing all at once. This method is available as.delete_request(request_id) in theInspectRequestsMixin (and thus the webdriver).

Personally, I believe a more elegant solution would be changingInspectRequestsMixin.requests to return a custom class implementing__delitem__, which would allow us to usedel driver.requests[request_id] instead, but I am not sure if this would break compatibility for some users.

Secondly, it exposes thecheck_response parameter of the.find() method of the storage asInspectRequestMixin.wait_for_requests(..., check_response=False), allowing users to wait for requests until a response is available.

Additionally, test cases and documentation updates for these changes have been included.

jdholtz reacted with thumbs up emoji
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@IMayBeABitShy

[8]ページ先頭

©2009-2025 Movatter.jp