-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Not able to use Playwright on macOS Catalyst #2843
Comments
In short, Playwright is currently not usable for macOS users :( |
The error gets thrown here:
We do |
the class library has I know that the exception is thrown there :) The if statement in line 107 specifies OSX, but behind it are the values MACCATALYST and IOS. This means that the if fails every time. The string comparison is always wrong on macOS. |
I am experiencing the same issue. I am trying to use this on MacOS in a Blazor MAUI app. |
Here same as @cyrilgupta |
System info
Source code
i use the sample code from playwright on macOS and got an exception at the following line (the logic is in a .NET 8 Class Library):
EXCEPTION:
I followed the code through the StackTrace and came to a place where basically the string "OSX" is compared with the string "MACCATALYST" and "IOS" and therefore fails. The value "OSX" is set in Driver.cs line 107 and compared with the current platform in the if. In the OperatingSystem.cs file, however, only MACCATALAYST and IOS are checked as described.
As soon as the platform names for macOS are used correctly everywhere, the bug is fixed and the "Unknown-Platform" exception no longer occurs :)
The text was updated successfully, but these errors were encountered: