Selenium 3.0 Webinar

In case you missed it, here is the Selenium 3.0 Webinar:

The very first code for Selenium RC was pushed in November 2004.
The first code for WebDriver was released in January 2007.
Selenium 2.0 shipped in July 2011.
In 2016, the Selenium Project is working hard to (finally!) ship 3.0.

Watch this webinar with Simon Stewart, and discover:

  • What will this release contain?
  • What impact will it have on your test runs?
  • How can you preserve your existing investment in tests using the Selenium WebDriver APIs, and your even older RC tests?
  • Looking forward, when will the W3C spec be complete?
  • What can we expect from Selenium 4?

Select Option in a Select using Partial Text

If you ever come across the need to select an option in a drop down list when you only have some of the text here is how you can select a particular option oin a drop down list using a partial text selector. In this example the drop down list would be populated with strings formatted as follows: FirstName LastName – Address. eg “John Smith – 1001 Main St”. For the test we only have the person’s name available to us.

IWebElement ddlList = driver.FindElement(By.Id("ddlList"));
string strName = "John Smith";

ddlList.FindElement(By.XPath(string.Format("./option[starts-with(text(), '{0}')]", strName))).Click();