[HELP] Issue with Dynamic CSS Selectors

Support
  • Hello everyone,

    I'm currently working on a project, and I've encountered an issue with dynamic CSS selectors. Specifically, I'm trying to loop through elements using the following CSS selector: >CSS> #\5F AdQVAWidget_502705 >SHADOW>>CSS>img.

    The problem I'm facing is that the part of the selector 502705 is dynamic and changes every time I reload the website. This makes it difficult to consistently identify the elements.

    Here is the screenshot of the loop element, and the Site URL of the website is this.

    dad6439a-3c66-46a2-b266-73749d12becf-image.png

    fcfdd47d-1cba-4763-beb9-af5b76ec8a50-image.png

    I've tried using partial matching and XPath to handle the dynamic nature of the selector, but I haven't had any success so far. Here are the approaches I've attempted:

    Partial Matching: I used selectors like #AdQVAWidget_*, but it didn't seem to resolve the issue.

    XPath: I utilized functions like contains() and starts-with() in XPath to target the elements, but the problem persists.

    I'd appreciate any suggestions or solutions to handle this dynamic CSS issue effectively in BAS.

    Thank you in advance for your help!

  • @Anon1337 >MATCH>_AdQVAWidget >AT>0 >SHADOW>>CSS>...

  • Video editing - BAS Help Please !

    Moved Support
    0 Votes
    2 Posts
    947 Views
  • Bulk Image upload - Please Help

    Support
    0 Votes
    2 Posts
    637 Views
  • 0 Votes
    2 Posts
    790 Views
  • MultiThreading Issue

    Support
    0 Votes
    1 Posts
    586 Views
  • 0 Votes
    5 Posts
    4615 Views