Selenium XPath Tutorial #7 - XPath Axes Methods | Parent, Child, Self

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 28

  • @priyankak8450
    @priyankak8450 4 года назад +2

    Great sir, easy to understand. I'm watching all your videos to learn robot framework. Thank you so much sir

  • @TheAllanazarpour
    @TheAllanazarpour 4 года назад +2

    Great, easy to understand, thanks.

  • @pankajsumansharma9236
    @pankajsumansharma9236 4 года назад +1

    nicely explained , thanks

  • @Mooste
    @Mooste 3 года назад +1

    Good explanation. thanks :-)

  • @apollosbangalu3717
    @apollosbangalu3717 Год назад

    Thank you Sir for these videos. It has been of great help to me. Please how can I get the Slides for the entire series?

  • @rajanirajeswari3343
    @rajanirajeswari3343 2 года назад

    Hi Sir, It is simple and straight. Easy to follow. Many thanks for the posts.

  • @SainiDas-jw4mq
    @SainiDas-jw4mq Год назад

    Can you please mention why we are choosing parent in the last part of this video? what's the usage of that on a script?

  • @TienTrinh-nr3hx
    @TienTrinh-nr3hx 2 года назад

    thank u so so much ^^

  • @VarunBhati91
    @VarunBhati91 3 года назад +2

    great work sir helping a lot, i need to know can u share the link of ppt u used in the videos at the end of the series?

  • @Chillshortz1
    @Chillshortz1 Год назад

    Hi sir ,what's most important xpath or css selector? Interviewer would ask about css selector or xpath ?
    And secondly in real scenario what would be my approach , shall I go with xpath or css selector .please reply
    Thanks in advance

  • @laponiec
    @laponiec 2 года назад

    What if we want to select a single child from all the children, but we don't want to do it by an index, but by some other attribute, is it possible? Edit: Actually, it is possible the syntax would be: //select[@name="user[country]"]//child::option[@name="name"]

  • @dev9559
    @dev9559 Год назад

    I have a reference file where I have stored all the Xpath that are used in my project. The script was working fine but for the last few days I am getting an error message - 'Index out of bound'. I showed it to one colleague he said to change the sequence of the Xpath i.e. Cut and paste the XPath of the web element where the script is failing to the top of the page(reference file) and it somehow worked. But this is not the solution though as other people in the project area also updating that file and somehow the sequence is getting changed after some time and I am getting the same error again for one web element or another.
    Now I have to copy every Xpath to the top of the reference file(one after another) as I am getting the same error for every next web element So the file gets updated after a few mins and I am stuck with the same error.
    I don't think sequence should be an issue but it seems fishy

  • @siddhantraj5323
    @siddhantraj5323 3 года назад

    Hello
    how can I select lwc components with XPath
    example I want to select lwc-button
    //lwc-button is not working
    thanks.

  • @dilawarkhan4085
    @dilawarkhan4085 3 года назад +1

    amazing content sir, i need the PPTx if you can provide please.

  • @shantanujoshi3863
    @shantanujoshi3863 2 года назад

    Hi now if you go this site all the webelements are now inside shadow DOM. Please make a video again for shadow dom elements

  • @rahulkar3195
    @rahulkar3195 3 года назад

    I would like to point out one thing..using a // before parent or child doesn't correctly work in cases where we use a * after parent or child.
    For eg try randomly on tags using
    //tag.........]/parent::*
    //tag.........]//parent::*
    Both of the above gives different results..using double slash yields multiple parents..most of the times
    So its better to use a single slash at all times to yield only 1 parent

    • @thangvumanh1320
      @thangvumanh1320 3 года назад

      You are right, but could you tell me the reason for that?

  • @ianleo3030
    @ianleo3030 Год назад

    but what if the parent is not unique

  • @naganikhil6954
    @naganikhil6954 11 месяцев назад

    Sir overall it was good
    But u dint take real time scenarios
    U were just managing it
    For dynamic elements u dint take real time dynamic values

  • @ianleo3030
    @ianleo3030 Год назад

    it is fine i solved it
    //span[contains(text(), "ماهو الحل مع هؤلاء الدين يدعون أنهم دفعوا المال")]//parent::span[@class="x193iq5w xeuugli x13faqbe x1vvkbs x1xmvt09 x1lliihq x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x xtoi2st xw06pyt x1603h9y x1u7k74 x1xlr1w8 xzsf02u"]