I am converting my project element library from xpath to CSS. Some xpath expression written using 'following' and 'preceding' method. Like below.
//div[@id='dashboard_right_now']/following::a[contains(@href, 'edit')][text() = 'Posts']
Now I want to convert same expression with equivalent CSS. I searched google around and found "+" operator used as 'following' in CSS. But firepath tools gives "no node matched" error.
div#dashboard_right_now>div.inside>div>p + a[href*='edit']
Any suggestion on how to incorporate 'following' and 'preceding' methods in css selector. Thanks
preceding
in css. On another note, expression looks very long and prone to errors when application changes.