0

I've been using xpath a lot recently.

Now I'm going to start using css a lot, based on advice I've received.

How would I take an xpath expression like

//tr[td[contains(.,'6 Day')]][1]/td[8]/a@href 

and convert it to css?

I tried

tr.td:contains('6 Day'):nth(1) > td:nth(3) > a[href]

but I got an error

1 Answer 1

1

Minor mistake, I should have had:

tr td:contains('6 Day'):nth(1) > td:nth(3) > a[href]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.