geb.waiting.WaitTimeoutException: condition did not pass in 30 seconds
at geb.waiting.Wait.waitFor(Wait.groovy:124)
at geb.waiting.Wait$waitFor.call(Unknown Source)
at
geb.waiting.DefaultWaitingSupport.doWaitFor(DefaultWaitingSupport.groovy:50)
at
geb.waiting.DefaultWaitingSupport.waitFor(DefaultWaitingSupport.groovy:41)
at
geb.waiting.DefaultWaitingSupport.waitFor(DefaultWaitingSupport.groovy)
at geb.waiting.WaitingSupport$waitFor.call(Unknown Source)
at geb.Page.waitFor(Page.groovy:116)
at
geb.binding.BindingUpdater$InvocationForwarding.doCall(BindingUpdater.groovy:136)
at step_definitions.Script4$_run_closure9.doCall(Script4.groovy:283)
at ✽.I complete Eligibility
Check(classpath:/home/TestAutomation/target/test-classes/features/Care.feature:9)
On Wed, 26 Aug 2020 at 02:43, Marcin Erdmann <[email protected]>
wrote:
> What's the stacktrace of the exception?
>
> On Mon, Aug 24, 2020 at 10:21 PM raz <[email protected]> wrote:
>
>> I have this Salesforce lightning site which is working fine with Firefox
>> but when I run the same test in Chrome, it's like it can't ready anything
>> from DOM and just waits at the first instruction.
>>
>> For example, when a page loads, I have this code to ensure its loaded
>> before interacting with the objects which works flawlessly on Firefox and
>> in Edge.
>>
>> *waitFor(WAIT_TIME) { browser.$('h2', text: contains('Eligibility
>> Check')).isDisplayed() }*
>>
>> but the same line of code throws *geb.waiting.WaitTimeoutException:
>> condition did not pass in 30 seconds *when I run the test in Chrome and
>> I can see the page is loaded but seems like Geb/Selenium can't interact
>> with the DOM hence the exception.
>>
>> Any ideas what may be going on? I've tried various machines, versions of
>> Chrome but can;t seem to figure it out. Any help is greatly appreciated.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Geb User Mailing List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/geb-user/e9c3cc81-156c-45e0-a3bb-ebb6f888d76bn%40googlegroups.com
>> <https://groups.google.com/d/msgid/geb-user/e9c3cc81-156c-45e0-a3bb-ebb6f888d76bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Geb User Mailing List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/geb-user/IGedAOfoFNk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/CA%2B52dQS6WXtTRg2cf-0RAYjX5mqPKopK-Ad7wPwQexu5O3BuhA%40mail.gmail.com
> <https://groups.google.com/d/msgid/geb-user/CA%2B52dQS6WXtTRg2cf-0RAYjX5mqPKopK-Ad7wPwQexu5O3BuhA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/CAFH7xtrYOEkyREeT4cKUoowe1J%2BDQuV5AJ0pK-tgiBoo7eJfWg%40mail.gmail.com.