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

Retrieving HAR object/string in Selenium #21

Closed
gmichels opened this issue Jul 7, 2018 · 2 comments
Closed

Retrieving HAR object/string in Selenium #21

gmichels opened this issue Jul 7, 2018 · 2 comments

Comments

@gmichels
Copy link

gmichels commented Jul 7, 2018

Hello

Sorry if this is the wrong place to ask for this, however I can't find a way to return the HAR string back into Selenium. I can dump it into the console per the instructions, however no matter what I try, I can't get it back via webdriver.

I found firebug/har-export-trigger#9 which seems to be what I need, but I can't make it to work.

Any clues?

Thank you

@soulgalore
Copy link
Contributor

Hi @gmichels
this is what it looks like when we get the HAR from the new export trigger in Browsertime. You need to execute async JavaScript through Selenium and then take care of the result when it's finished. Does that example help?

Best
Peter

@gmichels
Copy link
Author

Hi @soulgalore, thanks a lot for the pointer, it worked perfectly per the solution you provided. Appreciate the speedy response.

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