Tag Info

Hot answers tagged

1

Ok, this isn't a bug. The XPath, when searching in the context of an element, must start with a dot. So this works: htmlControl = htmlDiv.FindElement(By.XPath(".//label[text()='Naam']/following-sibling::div[1]//select"));



Only top voted, non community-wiki answers of a minimum length are eligible