AROCKIA JERALD
2017-07-04 15:37:09 UTC
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.
watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@googlegroups.com
---
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 watir-general+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@googlegroups.com
---
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 watir-general+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.