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
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"]
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
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
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"]
Great sir, easy to understand. I'm watching all your videos to learn robot framework. Thank you so much sir
Thank you Priyanka! Regards, Manish
Great, easy to understand, thanks.
Thank you! Glad you liked it!
nicely explained , thanks
Thank you Pankaj! Regards, Manish
Good explanation. thanks :-)
Thanks, glad you liked it!!
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?
Hi Sir, It is simple and straight. Easy to follow. Many thanks for the posts.
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?
thank u so so much ^^
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?
Thank Varun! Will upload soon and provide link. Regards,Manish
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
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"]
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
Hello
how can I select lwc components with XPath
example I want to select lwc-button
//lwc-button is not working
thanks.
amazing content sir, i need the PPTx if you can provide please.
Hi Dilawar, Will upload soon and provide link. Thanks, Manish
Hi now if you go this site all the webelements are now inside shadow DOM. Please make a video again for shadow dom elements
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
You are right, but could you tell me the reason for that?
but what if the parent is not unique
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
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"]