News for hackers. Stuff that matters.
Re:Show HN: Simplex: Automate browser workflows using code a... by vitalets on Wednesday January 15, 2025 @01:14AM (#42707902)
I've tried the following code:

    simplex.goto("github.com/mitchellh")
    num_contribs = simplex.extract_text("blabla")
    print(num_contribs)
It outputs all texts from the page. Is it expected? Maybe it should fail indicating element could not be found?
Re:Show HN: Simplex: Automate browser workflows using code a... by skarpoor on Wednesday January 15, 2025 @01:23AM (#42707950)
extract_text returns all the lines of text it finds within an element. Looks like for your case it selected a majority of the page from the description, so it's returning most of the text on the page.

We currently don't return failure cases (just closest match) -- but good suggestion! We'll fine tune on some negative cases and see if we can catch them