bernerdschaefer / akephalos

Headless HTMLUnit powered browser for Capybara
bernerdschaefer.github.com/akephalos
MIT License
338 stars 50 forks source link

Add #xpath to Akephalos::Node #46

Closed mcmire closed 13 years ago

mcmire commented 13 years ago

If you try to call #path on an Akephalos::Capybara::Node (for instance, if you call #inspect, which refers to #path), then Akephalos blows up, because Akephalos::Capybara::Node is calling native.xpath, which doesn't work because #xpath isn't defined for an Akephalos::Node. So this patch adds that. Cheers!