HTML Code: <span>Happy testing</span>
Options:
Select the preferred option and add it in the comments below.
Be a good Samaritan: Hit the ‘Share’ button to challenge your fellow QA geeks!
HTML Code: <span>Happy testing</span>
Options:
Select the preferred option and add it in the comments below.
Be a good Samaritan: Hit the ‘Share’ button to challenge your fellow QA geeks!
The right choice is "B : Xpath - “//span[contains(text(),‘Happy testing’)]” Also my alternatives for Xpath are 1. “//span[text()=‘Happy testing’]” 2. “//span[.=‘Happy testing’]” 3. “//span[contains(.,‘Happy testing’)]”
The right choice here would be B: XPath= //span[contains(text(),‘Happy testing’)], Alternatively, we could have used //span[text()=‘Happy testing’]
B: XPath= //span[contains(text(),‘Happy testing’)], Alternatively, we could have used //span[contains(.,'Happy testing’)]