I'm looking for the equivalent of Nokogiri::CSS.xpath_for().
I found css2xpath however the result from Nokogiri actually works, while css2xpath returns a selector that doesn't.
The result I'm looking for would be something like this: => ["//div[@id = 'my_div']//[position() = 1 and self::table]//[position() = 1 and self::tbody]//[position() = 2 and self::tr]//[position() = 1 and self::td]//[position() = 1 and self::table]//[position() = 1 and self::tbody]//[position() = 2 and self::tr]//[position() = 2 and self::td]"]