Inconsistent text returned from scraper in Autobook

Description of the issue:

Trying to use selected text from a page in an Autobook thatā€™s triggered on right-click. The ā€œget selected text on current pageā€ action seems to have some serious flaws as it only works intermittently. Often no text or even outdated text is returned.
Please note that this issue is specifically for the Autobook. I do not encounter the same issue when I turn this into a regular playbook (by removing the ā€œtriggered on right-clickā€ action), so the scraper action should have access to the selected text in question.

Error message (if aplicable):

Please paste the error message below:

There is no error, this just doesn't work as intended:
- Sometimes no text is returned
- Sometimes outdated text is returned
- Sometimes the actual selected text is retuned

Steps to reproduce this issue:

  • Iā€™m opening an article on a website, usually medium / substack / pocket
  • I select some text on the page
  • I use a simple Autobook with just a scraper that returns the result
  • I check the log to see whatā€™s returned exactly (some pictures at the bottom)
Bardeen version: 2.3.0
Link to Playbook or Autobook (if applicable):
:movie_camera:Video recording or screenshots (optional, but recommended):

Selected text is correctly returned
Screenshot 2023-09-05 at 12.44.22

Text from previous run is returned
Screenshot 2023-09-05 at 12.44.29

No text whatsoever is returned
Screenshot 2023-09-05 at 13.00.17

Hi, thanks for the detailed report.
I reported this internally, but meanwhile, ā€œWhen I right-click on a websiteā€ already returns the selected text if you right click on a selection, and you can access it in further actions in the playbook by clicking on ā€œTrigger: When I right-click on a websiteā€ ā†’ ā€œSelectionā€. This should be more reliable than a separate ā€œGet selected textā€ action.

1 Like

Well actually, I tried that first! However, so far Iā€™ve never been able to access any of the variables within triggers. Those are all empty - always. In fact, it made me think I actually misunderstood the purpose of thoseā€¦

To demonstrate this, Iā€™ve extended the Autobook with a Merge Text step, and have also made a few additional screenshots below:

Updated autobook:

Detail of merge action:

Example result (to be clear: the first line is the result for the Trigger):

Iā€™m getting the same results. It copies the selection, but not the Page URL, or Link. Not sure the difference between Page URL or Link, but they do not return regardless:

hey there @gcampax any update on your end?

I hope you have been able to review the additional comments about your suggested workaround (which also doesnā€™t give the expected results). Perhaps you can bring this to the attention of the team working on this issue as well.

Hi @rap! Our team is still looking into it, but itā€™s taking slightly longer to resolve than we initially anticipated. Please be patient with us. Weā€™ve prioritized your request, and expect to have an answer for you within the next two working days.

2 Likes

Hey there Lucy, any update? Iā€™m definitely patient, but because you said

have an answer for you within the next two working days.

Iā€™m checking in again, as itā€™s now 1.5 month later :sweat_smile:

@rap my sincere apologies for not providing an update sooner. Unfortunately, this has not been resolved yet and is still in queue. Iā€™ll nudge the team and see when we can get this resolved.

image

Thank you for your continued patience while we work on resolving this issue which will likely be in the next week.

This was fixed recently, and should be working in the current release. Closing.