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

Поділитися
Вставка
  • Опубліковано 6 жов 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

  • @rajanirajeswari3343
    @rajanirajeswari3343 2 роки тому

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

  • @Mooste
    @Mooste 3 роки тому +1

    Good explanation. thanks :-)

  • @TienTrinh-nr3hx
    @TienTrinh-nr3hx 2 роки тому

    thank u so so much ^^

  • @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?

  • @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?

  • @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

  • @dilawarkhan4085
    @dilawarkhan4085 3 роки тому +1

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

  • @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?

  • @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"]

  • @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

  • @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.

  • @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

  • @naganikhil6954
    @naganikhil6954 Рік тому

    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 Рік тому

    but what if the parent is not unique

  • @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"]