Why do valid CSS/XPATH selectors not work in BAS?

Support
  • For example, to access the Recaptcha v2 “Verify” button, the selector that works in Chrome (Devtools) is for XPATH: “//[@id=”recaptcha-verify-button“]” and for CSS: “//[@id=“recaptcha-verify-button”]”.
    So “>CSS> #recaptcha-verify-button” or “>XPATH> //*[@id=”recaptcha-verify-button“]” should work in BAS. Unfortunately, they do not.

    Is this a bug or have I overlooked something to make the selectors work? Or does anyone have another idea to access the “Verify Buttun”?

    Sometimes the selectors in BAS seem to have a very strange life of their own and it's more a matter of luck whether they work or not, it seems.

    verif_btn_css_01.png

    verif_btn_xpath_01.png

    bas_css_02.png

    bas_xpath_02.png

  • Because this button is inside the frame, try something like this:

    CSS> iframe[title^="recaptcha"] >FRAME> >CSS> #recaptcha-verify-button

  • Finally I ended using (it's also working for different languages of Recaptcha challenges) if someone searches for the same:
    ">CSS>iframe[src^=' https://www.google.com/recaptcha/api2/bframe ']>FRAME> >CSS>#recaptcha-verify-button"

  • BAS

    Support
    0 Votes
    5 Posts
    630 Views
  • Restore profile doesn't work

    Moved Support
    0 Votes
    7 Posts
    849 Views
  • BAS new update skipping frames

    Support
    0 Votes
    2 Posts
    787 Views
  • Issue with custom BAS interface

    Support
    0 Votes
    2 Posts
    686 Views
  • New with BAS

    Support
    0 Votes
    2 Posts
    659 Views