Difference between revisions of "IT-SDK-Xpath"
Jump to navigation
Jump to search
(Created page with "https://www.guru99.com/xpath-selenium.html ... Absolute xpath: html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/div/div[3]/div[1]/div/h4[1]/b Relative xpath: //*...") |
|||
| Line 1: | Line 1: | ||
| − | https://www.guru99.com/xpath-selenium.html | + | * Info-Source: https://www.guru99.com/xpath-selenium.html |
| − | + | * Absolute xpath: html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/div/div[3]/div[1]/div/h4[1]/b | |
| − | Absolute xpath: html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/div/div[3]/div[1]/div/h4[1]/b | + | * Relative xpath: //*[@class='featured-box']//*[text()='Testing'] |
| − | Relative xpath: //*[@class='featured-box']//*[text()='Testing'] | ||
<pre class="code"> | <pre class="code"> | ||
Xpath=//tagname[@attribute='value'] | Xpath=//tagname[@attribute='value'] | ||
| Line 18: | Line 17: | ||
Xpath=//*[contains(@type,'sub')] | Xpath=//*[contains(@type,'sub')] | ||
Xpath=//*[contains(text(),'here')] | Xpath=//*[contains(text(),'here')] | ||
| − | |||
... | ... | ||
Xpath=//*[@type='submit' or @name='btnReset'] | Xpath=//*[@type='submit' or @name='btnReset'] | ||
Revision as of 14:26, 18 December 2019
- Info-Source: https://www.guru99.com/xpath-selenium.html
- Absolute xpath: html/body/div[1]/section/div[1]/div/div/div/div[1]/div/div/div/div/div[3]/div[1]/div/h4[1]/b
- Relative xpath: //*[@class='featured-box']//*[text()='Testing']
Xpath=//tagname[@attribute='value'] ------------------------------------------- //: Select current node. tagname: Tagname of the particular node. @: Select attribute. attribute: Attribute name of the node. Value: Value of the attribute. ------------------------------------------- Xpath=//input[@name='uid'] Xpath=//*[@class='barone'] Xpath=//*[text()='Testing'] ... Xpath=//*[contains(@type,'sub')] Xpath=//*[contains(text(),'here')] ... Xpath=//*[@type='submit' or @name='btnReset'] Xpath=//*[@type='submit' and @name='btnLogin'] .. Xpath=//label[starts-with(@id,'message')] Xpath=//label[text()='UserID'] ... Xpath=//*[@type='text']//following::input Xpath=//*[@type='text']//following::input[1] ... Xpath=//*[@type='submit']//preceding::input Xpath=//*[@type='submit']//preceding::input[1] ... Xpath=//*[@id='java_technologies']/child::li Xpath=//*[@id='java_technologies']/child::li[1] Xpath=//*[@id='rt-feature']//parent::div Xpath=//*[@id='rt-feature']//parent::div[1] Xpath=//*[@id='rt-feature']//descendant::a