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

Use rod to create a project to record browser events #139

Open
ysmood opened this issue Jul 20, 2020 · 5 comments
Open

Use rod to create a project to record browser events #139

ysmood opened this issue Jul 20, 2020 · 5 comments
Labels
discuss Need review and discussion help wanted We wish someone can help us to work on it

Comments

@ysmood
Copy link
Member

ysmood commented Jul 20, 2020

Similar to puppeteer-recorder, but we don't have to ask the user to install a browser extension to record events. So that we can handle more events than the chrome extension.

Code generation should be a separate standalone project to generate code for different targets, like go, js, java, etc.

See use-rod-like-chrome-extension

Also see:

@ysmood ysmood added enhance New feature or request discuss Need review and discussion help wanted We wish someone can help us to work on it and removed enhance New feature or request labels Jul 20, 2020
@yusufozturk
Copy link

We are also looking for a way to capture events. Is there any change on status for this issue?

Thanks.

@ysmood
Copy link
Member Author

ysmood commented Nov 20, 2020

You can already do that by using injecting js and Page.Expose to make your own recorder. You just need to learn some js.

@ysmood
Copy link
Member Author

ysmood commented Nov 20, 2020

No timeline yet, I don't have time to do it, but I can teach someone to do it. If anyone is interested, please leave a message here.

The main reason is it's actually not that useful, when I use puppeteer or playwright I seldom use them, once the task gets complex, they are almost useless or make the task even more time-consuming. You will spend more time to find solutions to keep using time 😂 . Handcrafting the selectors is really easy, not hard at all, anyone can master it in a short time.

@yusufozturk
Copy link

@ysmood thanks for redirecting me to the right way. I've used a js library to extract all the data I need.

// Inject Javascript
evalResult := page.MustEval(js)

// Export Output
return evalResult.String()

I have the results in JSON format so I can use it in main app.

Thanks.

@tmc
Copy link

tmc commented Jun 17, 2022

The chrome recorder format could be leveraged here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Need review and discussion help wanted We wish someone can help us to work on it
Projects
None yet
Development

No branches or pull requests

3 participants