Very beautifully explained sir❤u cleared all my confusions on Xpath🙌 Am very happy after watching this session ❤😍
@softwaretestingmentor3 жыл бұрын
Thank you Vijay! I am glad my work is helpful! Regards, Manish
@radhikaagarwal584 жыл бұрын
Hello Sir, Thanks for such wonderful videos! I am enjoying my learning with the help of your videos. Keep posting!
@softwaretestingmentor3 жыл бұрын
Welcome and keep watching.
@ayushirajvanshi97543 жыл бұрын
Hello Sir, thankyou for the amazing video. Can we determine xpath in Internet Explorer as well using CTRL+F ?
@jobanpreetsingh237010 ай бұрын
very well explained
@softwaretestingmentor10 ай бұрын
Thanks for liking. Keep watching and sharing.
@manoj_mafiosi Жыл бұрын
**Understanding Absolute and Relative XPath in Selenium - Notes:** - Introduction: - Absolute XPath contains the complete path from the root element to the desired web element. - Relative XPath starts from the middle of the HTML DOM structure. - Absolute XPath: - Starts with a single forward slash, like "/HTML/body/nav/a[2]". - Prone to failure if there are HTML DOM structural changes. - Not recommended for robust automation. - Relative XPath: - Starts with a double forward slash, like "//input[@name='first_name']". - More resilient to HTML DOM structural changes. - Recommended for stable and reliable automation. - Absolute XPath Example: - Absolute XPath for a specific div element: "/html/body/div[2]/div[3]". - Relative XPath Example: - Relative XPath for the input field with name attribute "first_name": "//input[@name='first_name']". - Advantages of Relative XPath: - Less prone to breaking with HTML DOM structural changes. - Offers stability and reliability to automation scripts. - Conclusion: - Absolute XPath contains the complete path from the root node, but it's not recommended for robust automation. - Relative XPath starts closer to the desired element, making it more adaptable to changes. - For stable and reliable automation, it's advisable to use relative XPath.
@manjushanetragaonkar10432 жыл бұрын
Hello sir I have one question Where we are using absolute x path???
@TienTrinh-nr3hx3 жыл бұрын
thank u so much ^^
@Itech6969 Жыл бұрын
so why use absolute xpath when its better to use relative?
@rishikeshshah7294 Жыл бұрын
Thanks for making such a nice tutorial. I enjoy your teaching method. I tried to locate the first name text box by relative xpath //input[@name='first_name']. It is not possible because this is inside shadow root. I found the way to get to this element using getShadowRoot() method of selenium. // getting elements under shadow root WebElement id_field= driver.findElement(By.xpath("//dw-de-signup-form")) .getShadowRoot().findElement(By.cssSelector("dx-input.full-name-field")) .getShadowRoot().findElement(By.cssSelector("input#input")); id_field.sendKeys("Tester");