Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

I am getting a timeout error on the linux using chromium browser but same is working on the windows.

I am using the serenity BDD.

Caused by: org.openqa.selenium.TimeoutException: Expected condition failed: waiting for TransactionPage.moreTransactionButton to be not displayed (tried for 5 second(s) with 100 milliseconds interval)

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'

System info: host: 'mesos-jenkins-9fd7a38e844041bcbcbf7079e094c3bc-java180u161-mave', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.11.6.el7.x86_64', java.version: '1.8.0_161'

Driver info: driver.version: unknown

    at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:304)

This is button I am waiting for to get invisible.

@FindBy(xpath = "//button[contains(.,'Show More Transactions')]", timeoutInSeconds = "180")

    public WebElementFacade moreTransactionButton;

Edit 1:

This is the waiting function

element(moreTransactionButton).waitUntilNotVisible().withTimeoutOf(Duration.ofSeconds(300));

1 Answer

0 votes
by (62.9k points)

1. There are some plugins like a flash player which may hang the browser inconsistently waiting for some resource during a test run, try disabling such plugins while starting the test using the chrome switches. http://peter.sh/experiments/chromium-command-line-switches/

2. The browser might hang waiting for some third-party ads. Try disabling ads using some ad blocker extension or block the URL pattern using the custom proxy configuration.

For inconsistent browser hangs, try to find which process hangs the browser.

1. Unlike Firefox, Chrome creates a separate process for browser, tab, extension and plugins.

2. When the browser hangs check is there any new process(shift+Esc) like Web Worker:blob appended with a third party URL, then follow #2

3. or else if there are more separate process opened for plugins, try #1


 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...