Monday, June 6, 2016

Selecting your Elements with XPath and CSSSelector

How my Desktop looks like :)?


This is an useful wall-chart from Rosetta Stone and Cookbook that covers popular technologies as XPath, CSS.

Some examples of how to use this wall-chart:

1. Use this By.CssSelector("g[id^='milestone']") to identify element below:


2. Use Instance.FindElements(By.CssSelector(".cellContent > a > div"), Ex)[i] to find all elements below: 


3. Use By.CssSelector(".ember-view.timeband-scale-format>div:first-of-type>div>ul>li>a")


Happy testing and... make it green, becomes a dream :).

No comments:

Post a Comment

Popular Posts