--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f69c0b63-aba2-432f-9b25-1d3af483f95e%40googlegroups.com.
invalid selector: Unable to locate an element with the xpath expression #content > div > div > table > tbody > tr > td:nth-child(4) because of the following error: SyntaxError: Failed to execute 'evaluate' on 'Document': The string '#content > div > div > table > tbody > tr > td:nth-child(4)' is not a valid XPath expression.
Thanks,
> email to selenium-users+unsubscribe@googlegroups.com.
> To post to this group, send email to selenium-users@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/selenium-users/c9468e71-b44b-4b85-8335-a4802a7ca8a9%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/kCEsrPq8_ew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKSYPujTLLv5dyrT6zQWdLUVX50%3DLDxtPmirPWGZsR4TpoNZ4Q%40mail.gmail.com.
.//table//td[1]
IList<IWebElement> firstColumn = driver.FindElements(By.XPath(".//table//td[1]"));
foreach (IWebElement el in firstColumn)
{
if (el.Text.Contains("Alfreds Futterkiste")) //let's say we want to make sure "Alfreds Futterkiste" is present in the first column no matter the table line number
{
<...>
}
}
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/81491757-f1f8-41b2-926a-f8919eed20cb%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/kCEsrPq8_ew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/81491757-f1f8-41b2-926a-f8919eed20cb%40googlegroups.com.