Yad Smood
Yad Smood
One solution: ```go package main_test import ( "testing" "time" "github.com/stretchr/testify/assert" "github.com/ysmood/got" ) func Test(t *testing.T) { got.Each(t, beforeEach) } func beforeEach(t *testing.T) Suite { t.Parallel() return Suite{assert.New(t)} } type Suite...
@rn0l485 A better way to abstract it in Rod: https://github.com/go-rod/rod/blob/d7b838112a1a30304d0c7afd759e1a9608066a93/element.go#L72-L81 ```go page.MustElement("button").MustHover() ``` Hover the mouse over the center of the element. Before the action, it will try to scroll...
It's also useful for IDE syntax highlighting.
是的,短期内替换是不实际的,主要还是想了解下重度使用 chromedp 的人的一些痛点,很多 chromedp 的问题感觉是架构上的,提前了解能帮助以后的人很多。
@WuHuaJi0 https://github.com/ysmood/leakless
We should strip the special color chars if it's hard to support it for now: Now the terminal output is correct, but other parts are not.
Can we create a fake HTML page to reproduce this?
About 2, it won't panic, because rod has protection for crashing, it will return proper err for it. About 1, if we can't reproduce it, we won't merge the PR.
Sure, we can make a PR for it, let's reopen it. Can you help to make the PR, thank you so much!
@alexferrari88 because `fullpage` is false when you call `p.MustScreenshot()`.