Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to capture the time effect when a section of the web page is loaded (not entire page)?. #164

Open
sale4cast opened this issue Jul 31, 2024 · 2 comments

Comments

@sale4cast
Copy link

There is a web page (picture is below) and it has three sections. These three sections are header section, side section and body section. In the side section, there is a button. Once you click on this button, the new information will be loaded in the body section. The URL of the web page before and after clicking are identical. My question is, how to capture the time effect of loading data in the body section?

Note: I have already tried by using Page$loadEventFired(wait = FALSE) function. It can capture the time effect when the entire web page is being loaded. But it can not capture the time effect of loading data when only a section of the web page is loaded.

picture
@wch
Copy link
Collaborator

wch commented Jul 31, 2024

What you do here will really depend on specifics of how the page loads the content. The Chrome Devtools Protocol documentation might have some relevant events to listen for:
https://chromedevtools.github.io/devtools-protocol/

@sale4cast
Copy link
Author

Dear Winston, Thanks for your comments and your previous help. Can you please explain the sentence of your comment by an small example "it will really depend on specifics of how the page loads the content."?.

To provide more information to you about the problem, I feel to attach an screenshot in below. After clicking on "done" button (highlighted in the top right corner of screenshot), the new room price is loaded in the body section within 2-3 seconds. We are struggling to capture the loading time effect of this 2-3 seconds. Note: the entire page is not loaded and therefore the URL of entire web page before and after the clicking is identical.

problem_image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants