# Watir xpath problem!

**URL:** <https://www.ruby-forum.com/t/watir-xpath-problem/115353>\
**Category:** Ruby\
**Created:** [September 24, 2007, 10:51am UTC](https://www.ruby-forum.com/t/watir-xpath-problem/115353 "2007-09-24T10:51:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lote](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ea666f/32.png) [@lote](https://www.ruby-forum.com/u/lote)\
**Post date:** [September 24, 2007, 10:51am UTC](https://www.ruby-forum.com/t/watir-xpath-problem/115353/1 "2007-09-24T10:51:31Z")

</div>

hi,

i have installed Ruby 1.8.2 version because i need ModalDialog  
support.Only this version support modal dialog…and i’ve installed  
watir 1.5.2 for same reason…so when i try to access element by xpath  
using "ie.element\_by\_xpath(‘button[@id,‘someid’]’).click, i have  
error  
message like this.

—\> RuntimeError: Requires REXML version of at least 3.1.4. Actual:  
3.1.2.1

Please tell me how can i upgrade REXML version to 3.1.4. i have read  
some discussion about it but i could not find anything…

if you know answer,tell me step by step plz…

good work
