Selenium Notes

Syntax Example Explain  
^= id^='look' Starts With  
*= for Contains  
$= me Ends With  

IWebElement AlignIBM = Chrome.FindElement(By.CssSelector("[Id$='alignTR']")); Makes a "base" element
AlignIBM = AlignIBM.FindElement(By.XPath(".//td[2]")); The Period establishes current element as the root element for the element search!
Must be an object for the XPath to find
string strAlignIBM = AlignIBM.GetAttribute("textContent"); Get the information / text that is on the page

Chrome.FindElement(By.XPath("//*[@id='wheelAlignment']")) Base elelemt
.FindElement(By.XPath(".//input[@value='no']")) Find an element with a particular attribute - MUST have an object - Use the value in the object, not the display text
.Click(); Action

  1. .getattribute
    1. textContant
    2. value
      1. drop down lists
    3. innerText

Revised 06/24/2022