User Tools

Site Tools


css_selector

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

css_selector [2018/01/04 12:04]
tast
css_selector [2024/01/12 11:14] (current)
Line 1: Line 1:
 ===== CSS Selector ===== ===== CSS Selector =====
- 
-[[doku>​wiki:​dokuwiki|{{wiki:​TAST-128_small.png }}]]  
  
 As said in [[Objects Identification]],​ the CSS Selector is simply and easy a way to identify objects in HTML (identying one or many elements) and very useful. As said in [[Objects Identification]],​ the CSS Selector is simply and easy a way to identify objects in HTML (identying one or many elements) and very useful.
  
-When selecting an object, in testing, it is needed to be specific, and for it, using css tends to lead to selectors such as span[name='​cars'​] rather than the [[xpath|XPath way]] **!!!!!! INCLUIR EL Xpath way !!!!!!!!!!!!!!** +When selecting an object, in testing, it is needed to be specific, and for it, using css tends to lead to selectors such as span[name='​cars'​] rather than the [[xpath|XPath way]] //​body//​div/​spn/​span/​table/​tr/​tr/​tr/​td/​td/​td/​td/​span[@name='​cars'​].
-//​body//​div/​spn/​span/​table/​tr/​tr/​tr/​td/​td/​td/​td/​span[@name='​cars'​].+
  
 Css selectors are based in defining the kind of element added to the definition of one or more attributes. It is also possible to define only the type of element (this tends to be inaccurate) or only the attributes (one or more). At the end of the page, some examples show the way to do it. Css selectors are based in defining the kind of element added to the definition of one or more attributes. It is also possible to define only the type of element (this tends to be inaccurate) or only the attributes (one or more). At the end of the page, some examples show the way to do it.
Line 68: Line 65:
 {{:Copy selector.png?​nolink&​650|}} {{:Copy selector.png?​nolink&​650|}}
  
-Further info about CSS selector can be found clicking here.  ​**!!!!!! INCLUIR EL here !!!!!!!!!!!!!!**+Further info about CSS selector can be found [[https://​www.w3schools.com/​cssref/​css_selectors.asp|clicking here.]]
  
css_selector.1515067496.txt.gz · Last modified: 2018/01/04 12:04 by tast