[BUG] blank page of Chrome browser came and vanished immediately while running testcase through playwright connecting to a remote selenium grid 4

See original GitHub issue

Context:

  • Playwright Version: [1.19]
  • Operating System: [e.g. Windows]
  • jdk 8
  • Browser: [Chromium]
  • Selenium grid 4 is set up in a docker container in EC2 linux instance.
  • below code is written in Another machine and selenium grid is set up in a different machine.
@Test
    public void shouldAnswerWithTrue()
    {
        List<String> list=new ArrayList<String>();
        list.add("--start-maximized");
        Map<String, String> env = new HashMap<>();
        env.put("SELENIUM_REMOTE_URL", "http://10.567.163.145:4444");
        try(Playwright playwright = Playwright.create(new Playwright.CreateOptions().setEnv(env))){
            Browser browser = playwright.chromium().launch(new 
            BrowserType.LaunchOptions().setHeadless(false).setSlowMo(100).setArgs(list));
            BrowserContext browserContext = browser.newContext();
            Page page = browserContext.newPage();
        }
        catch (Exception e) {
            e.printStackTrace();
        }

When i am putting debugging point on Page page = browserContext.newPage(); debugger is not coming to this line. Before that chrome browser is opening in selenium grid 4 and vanished immediately. Testcase is not even failing. its running for infinite time. I have to cancel the testcase manually in intellij.

i am using mvn test command to run this testcase.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
satya081commented, May 20, 2022

@yury-s @pavelfeldman Any update on this.

1reaction
satya081commented, May 6, 2022

@yury-s @pavelfeldman Any update on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - A blank browser is automatically getting launched when ...
I have a Local Selenium 4 Grid setup. Hub and Node both are running on my local system. When I am trying to...
Read more >
Releases - CodeceptJS
npx codeceptjs run test-dir/*" ... The fastest option when running tests in windowed mode. ... [Playwright] Fix connection close with remote browser.
Read more >
Timed out receiving message from renderer error - chromedriver
I am running some jobs in Jenkins and I notice that I keep getting "Timed out receiving message from renderer" and is causing...
Read more >
How to capture/take Selenium Screenshot as Full ... - Tools QA
Why is Screenshot required in Automation testing? How to take a Selenium screenshot Full page & of a particular element in Selenium ?...
Read more >
Selenium Documentation | Scholars at Harvard
2.5.4 Selenium-Grid. Selenium-Grid allows the Selenium RC solution to scale for large test suites and for test suites that must be run in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found