Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions Browser/keywords/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,30 +259,6 @@ def wait_for_response(
logger.debug(f"Returned response is of type {type(response)}")
return response

@keyword(tags=("Wait", "HTTP"))
def wait_until_network_is_idle(self, timeout: timedelta | None = None):
"""*DEPRECATED!!* Use `Wait For Load State` instead. rfbrowser transform --wait-until-network-is-idle path/to/test command automatically transforms keyword to new format.

If you have:
| `Wait Until Network Is Idle` timeout=3s
then change it to:
| `Wait For Load State` networkidle timeout=3s

Waits until there has been at least one instance of 500 ms of no network traffic on the page after loading.

Doesn't wait for network traffic that wasn't initiated within 500ms of page load.

| =Arguments= | =Description= |
| ``timeout`` | Timeout supports Robot Framework time format. Uses browser timeout if not set. |

Example:
| `Go To` ${URL}
| `Wait Until Network Is Idle` timeout=3s

[https://forum.robotframework.org/t//4350|Comment >>]
"""
self.library.wait_for_load_state(PageLoadStates.networkidle, timeout)

@keyword(tags=("Wait", "HTTP"))
def wait_for_navigation(
self,
Expand Down
69 changes: 0 additions & 69 deletions Browser/utils/deprecated.py

This file was deleted.

7 changes: 0 additions & 7 deletions atest/test/03_Waiting/wait_for_http.robot
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ Wait For Response With OPTIONS Request
Should Be Equal As Numbers ${res2.status} 204
Should Be Equal ${res2.body} ${None}

Wait Until Network Is Idle Works
[Tags] slow
Go To ${ROOT_URL}delayed-load.html
Get Text \#server_delayed_response == Server response after 400ms
Wait Until Network Is Idle timeout=3s
Get Text \#server_delayed_response == after some time I respond

Wait For Navigation Works
[Tags] slow
Go To ${ROOT_URL}redirector.html
Expand Down
51 changes: 0 additions & 51 deletions utest/test_deprecated.py

This file was deleted.