Lot of discussions happen over the topic. But this what I think.. Correct me if something is missed here :)
CSS
|
XPATH
|
CSS is more
readable. and faster
|
Xpath is complex
to read.
|
Css is more faster
|
Xpath is less
faster than css
|
Generally good
against Internet Explorer browser for finding the elements
|
Xpath bevomes slow
and sometimes unresponsive with IE.
|
Getting dynamic
loading of elements becomes complex.
|
Since Xpath has
contains, start-with and ends-with functions, xpath works best for
dynamically loading of elements.
|
Maintainace is
easy for css
|
Maintainace
becomes difficult with xpath being the complex structure.
|
Id is defined
using "#"
|
Id is defined
using "[@id='xx']"
|
No comments:
Post a Comment