How to generate XPath & selectors for cross origin iframe elements in SelectorsHub? XPath Plugin

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • Take my Udemy Course and learn A to Z with deep concepts about XPath, cssSelector, WebElements, Shadow DOM, iframes, SVG, SelectorsHub, TestCase Studio and more complex automation scenarios to be an automation expert-
    www.udemy.com/...
    SelectorsHub home page & download link-
    selectorshub.com/
    Get your beautiful SelectorsHub T-Shirt from here-
    teeshopper.in/...
    Donate & support SelectorsHub-
    selectorshub.c...
    SelectorsHub Telegram Group-
    t.me/joinchat/...
    Need support, connect on Slack
    bit.ly/SH_Slack
    SelectorsHub Udemy Course-
    bit.ly/SH_Full_...
    Detailed tutorial on iframe & nested iframe-
    • How to Handle iFrame a...
    Detailed tutorial on Shadow DOM-
    • SelectorsHub: How to A...
    If SelectorsHub blocked in company then how to get it unblocked-
    • What permissions Selec...
    ▬▬▬▬▬▬ TH-cam Playlists 🚀 ▬▬▬▬▬▬
    SelectorsHub Tutorial ► bit.ly/SH_tutor...
    XPath Tutorial Tutorial ► bit.ly/XPath_Tu...
    CSS Selectors Tutorial ► bit.ly/cssSelec...
    ▬▬▬▬▬▬ SelectorsHub Sponsor 👋 ▬▬▬▬▬▬
    TestProject ► bit.ly/Sh_TestP...
    ▬▬▬▬▬▬ Follow SelectorsHub 👋 ▬▬▬▬▬▬
    Don't forget to subscribe ► bit.ly/Selector...
    TWITTER ► / selectorshub
    LINKEDIN ► / selectorshub
    Join Slack ► bit.ly/SH_Slack
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    Don't forget to subscribe ► bit.ly/Selector...
    TWITTER ► / sanjaykumaarr
    LINKEDIN ► / chropath-creator
    #selectorshub #iframe #xpathtool

ความคิดเห็น • 6

  • @ShreekanthKoraboina
    @ShreekanthKoraboina 3 หลายเดือนก่อน

    Thank You Sanjay!

  • @dhirajmishra5915
    @dhirajmishra5915 3 ปีที่แล้ว +2

    Do we need to switch to the frame before using the relative XPATH generated by selecctorhub for cross-origin .

    • @SelectorsHub
      @SelectorsHub  3 ปีที่แล้ว

      Yes ofcourse that you will have to do. That handling logic will be same.

  • @razorback6996
    @razorback6996 3 ปีที่แล้ว

    Hi, So my selector falls under a class that constantly changes. For example, //*[@id="e550965ec3_mtk6ndq6ntk"]. I like to generally make them generic, so it changes when the class changes. For example, I prefer to use //*[text()='Click here']. However, I dont know how to do it in the iFrame. I dont see these instructions you gave helping me unless I am missing something. When i use right click, it gives me //input[@id='phonenumber[objectobject]__input'], but my bot cant use it because its in an and requires additional tags.

    • @razorback6996
      @razorback6996 3 ปีที่แล้ว

      >XPATH> id("02116667b5_mtk6mzm6mta")>FRAME> >XPATH> id("phonenumber[objectobject]__input"), my bot pulls the selector as this. It's this id("02116667b5_mtk6mzm6mta") that i want to avoid because its dynamic

    • @SelectorsHub
      @SelectorsHub  3 ปีที่แล้ว

      @@razorback6996 you can generate xpath from SelectorsHub tab. There you will get more options to generate xpath with desired attribute and text. Please watch the detail tutorial of SelectorsHub. You can also join my training to learn more about xpath and SelectorsHub.