Edge chromium driver is not getting maximized during object spy and running the script

When I run the script in edge chromium the browser is not getting maximized.

Screenshot:

1 Like

are you trying programmatically? still it fails?

Yes still it fails

Are you doing something like the below to get your screen to be run as maximized? I have to assume you are not.

WebUI.openBrowser('')

// like it better when see all the items
WebUI.maximizeWindow()

WebUI.navigateToUrl(gSiteURL)
WebUI.waitForPageLoad(10)

or

WebUI.openBrowser(gSiteURL)

// like it better when see all the items
WebUI.maximizeWindow()

WebUI.waitForPageLoad(10)

I am doing it.

@shraddha.borkar

You wrote the topic title:

Edge chromium driver is not getting mazimized during object spy and running the script

Let me clarify what you meant by this title. This title could be rephrased as a combination of the following 2 statements:

  1. Edge chromium driver is not getting maximized during object spy
  2. Edge chromium driver is not getting maximized when running the script

“during object spy” and “when running the script” — you should regard these 2 occasions seperate.

You attached a screenshot:
ss

This screenshot clearly tells that you were operating Object Spy, and you are not very happy about it. It seems you want to maximize the window size when you were operation Object Spy.

Please note: a call to the keyword WebUI.maximizeWindow() works only when running the script. It is not effective to the window size of browsers during you operate the Object Spy.

Then, how can you maximize the window size programmatically during you operate the Object Spy? — I don’t know. I have never tried it.