by marcon680 · 1y ago · 0 comments
One way to hack the scrolling to an element is to first run extract_bbox on a natural language description (in your case for GitHub it might be "follow button") then take the Y coordinate of that element and scroll that number of pixels. I just wrote this bit of code that I tested and it brings the contribution graph into full view:
simplex.goto("github.com/spro")
coords = simplex.extract_bbox("follow button")
simplex.scroll(coords[1])
simplex.wait(2000)
image = simplex.extract_image("green tile graph")
But then it incorrectly picks the code review/submissions/etc. graph as the green tile graph -- we'll look into it!re: frequency graph typo -- just pushed a fix, thanks!
No comments yet.