Open
Description
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.