Hi all,

I am migrating from watir-classic to watir-webdriver  to support ms edge 
browser testing. I am facing an issue with *document object *which was 
specific to IE. There is no direct way to refer document object using 
watir-webdriver. Below is the code am referring and its exception. Can this 
group help me on this to overcome this issue?

*Code:*

Watir::Wait.until(@entrySelectionTimeout) {
              
((control.document.invoke("currentStyle").backgroundColor).eql? 
@selectedColor) &&
               (is_status_bar_visible?.eql? false)
                           }

*Exception:*

 Exception: undefined method `document' for 
#<Watir::TableDataCell:0x46f00c8>

*Environment Used:*

Ruby Version - 2.2.6p396

*Gems used*
commonwatir (3.0.0)
watir (6.2.1)
watir-classic (4.3.0)
watir-webdriver (0.9.9)


is there any options to achieve my requirement as per the above code which 
uses *webdriver*? However, same things were working perfectly fine with 
watir-classic.
 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to