Just a guess but the page HTML may have multiple buttons that match value:
"OK" (and you're getting the very first one, which isn't the one that you
actually want.) It's been a while but think you could add visible: true if
that's the case, then it should find the one that you're looking for.
as you can see from the code, the button exists with text "OK". But i
cannot click on it. how do fix this ?
irb(main):189:0> ie.button(value:"OK").html
=> ""
irb(main):190:0> ie.button(value:"OK").exists?
=> true
irb(main):191:0> ie.button(value:"OK").click
2021-02-05 18:07:41 WARN Selenium