MarketSquare / robotframework-browser

Robot Framework Browser library powered by Playwright.
Apache License 2.0
513 stars 104 forks source link

"Webkit" loads a blank page when automated tests are run on Windows #3372

Closed srajendran123 closed 8 months ago

srajendran123 commented 8 months ago

Describe the bug Using an iPad browser agent and a "Webkit" browser, the app loads a blank page when tests are run on Windows. The same automated tests load the app fine when executed on Mac.

To Reproduce Steps to reproduce the behavior:

  1. On a Windows machine, through automation load 'https://pwa-br-us-a.qa.tillster.com/' url using "New Persistent Context" keyword with the following parameters: browser - "webkit" user agent - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15 viewport - "{'width': 810, 'height': 1010}"

Expected behavior: Loads the app

Actual behavior: Loads a blank page

Desktop:

srajendran123 commented 8 months ago

image (3)

srajendran123 commented 8 months ago

In the Steps to Reproduce above, if I replace "webkit" with Chromium browser along with the same user agent, app loads fine.

aaltat commented 8 months ago

I do not have any good advises for you. I would enabled developer tools and check do you see any obvious errors.

But this is more question to your development team, than for us, why your application does not work with WekKit. Also you could consult Robot Framework community, either Slack or Forum: https://robotframework.org/#community

But because we can not help you, I am going to close this issue.

srajendran123 commented 8 months ago

Hello @aaltat,

This application https://pwa-br-us-a.qa.tillster.com has been designed specifically for iPad safari users.

One thing we observed was the user agent that has been passed through the test data file is not honored when using webkit. Rather, the system config where the test runs on is passed as the user agent.

I am attaching the videos for more info. I am editing the bug title to reflect the same. Please let me know, if additional info is needed.

chromium.webm.zip webkit.webm.zip

srajendran123 commented 8 months ago

Hello @aaltat - I am not sure how this works. Since this issue is closed, should I open a new ticket or it can be tracked here? Please suggest. Thanks.