Skip to main content

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: How do you wait for jQuery Ajax callslink to complete in Selenium 2so answer) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: How do you wait for jQuery Ajax calls to complete in Selenium 2) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: link to so answer) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().

replaced http://sqa.stackexchange.com/ with https://sqa.stackexchange.com/
Source Link

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: How do you wait for jQuery Ajax calls to complete in Selenium 2How do you wait for jQuery Ajax calls to complete in Selenium 2) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: How do you wait for jQuery Ajax calls to complete in Selenium 2) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: How do you wait for jQuery Ajax calls to complete in Selenium 2) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().

Source Link

In reply to your first question:

If you are using Selenium/Webdriver you can use the WebDriverWait class (see this: How do you wait for jQuery Ajax calls to complete in Selenium 2) or you could use driver.FindElements(..) as it does not throw if no elements are found. You can then use some linq magic to get the first match. So it would look something like this: driver.FindElements(..).FirstOrDefault().