java - What is the trade-off for disabling CSS in HTMLUnit? -


i experienced slowness in htmlunit 2.12, , therefore disabled css explained in htmlunit : super slow execution?.

i want understand trade-off is. mean cannot use xpath selectors? there other tradeoffs?

xpath selectors take account html/xml document. css not affect queries. if have non-deterministic results based on whatever css rule applied.

as far css selectors , xpath selectors go, can safely use without loading css beforehand. loading them have no effect on result receive.

for css have influence on usage of htmlunit code or javascript code loaded depend on computed style of elements.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -