r***@gmail.com
2018-09-05 07:01:15 UTC
Hi Titus,
I am getting this warning while I execute this code
`#present? == false` to determine a stale element is deprecated. Use
`#stale? == true` instead.
If I use
@b.span(class: "spinner").wait_until(&:stale?)
Watir::Exception::Error: Can not check staleness of unused element
0) scenario1-Contact Example
?[31mFailure/Error: raise Watir::Exception::Error, "Can not check
staleness of unused element" unless @element?[0m
?[31m?[0m
?[31mWatir::Exception::Error:?[0m
?[31m Can not check staleness of unused element?[0m
?[36m# ./Source/FrameWorkModules/Chrome.rb:168:in `waitForPageLoad'?[0m
?[36m# ./Source/LoginModule/login.rb:72:in `driverSing'?[0m
?[36m# ./Source/FrameWorkModules/PullTheTestCases.rb:7:in
`initialize'?[0m
?[36m# ./Source/Contact_Create_spec.rb:36:in `new'?[0m
?[36m# ./Source/Contact_Create_spec.rb:36:in `block (4 levels) in <top
(required)>'?[0m
Why can't I use `@b.span(class: "spinner").wait_while(&:present?)` ? Hi, I
am designing a common framework for all of my project in my company using
WATIR. So this kind of code in my Framework level is pretty important. Can
you please let me know why it is deprecated?
--
--
Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
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 getting this warning while I execute this code
@b.span(class: "spinner").wait_while(&:present?)
2018-09-05 12:26:45 WARN Watir [DEPRECATION] ["stale_present"] Checking`#present? == false` to determine a stale element is deprecated. Use
`#stale? == true` instead.
If I use
@b.span(class: "spinner").wait_until(&:stale?)
Watir::Exception::Error: Can not check staleness of unused element
0) scenario1-Contact Example
?[31mFailure/Error: raise Watir::Exception::Error, "Can not check
staleness of unused element" unless @element?[0m
?[31m?[0m
?[31mWatir::Exception::Error:?[0m
?[31m Can not check staleness of unused element?[0m
?[36m# ./Source/FrameWorkModules/Chrome.rb:168:in `waitForPageLoad'?[0m
?[36m# ./Source/LoginModule/login.rb:72:in `driverSing'?[0m
?[36m# ./Source/FrameWorkModules/PullTheTestCases.rb:7:in
`initialize'?[0m
?[36m# ./Source/Contact_Create_spec.rb:36:in `new'?[0m
?[36m# ./Source/Contact_Create_spec.rb:36:in `block (4 levels) in <top
(required)>'?[0m
Why can't I use `@b.span(class: "spinner").wait_while(&:present?)` ? Hi, I
am designing a common framework for all of my project in my company using
WATIR. So this kind of code in my Framework level is pretty important. Can
you please let me know why it is deprecated?
--
--
Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
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.