<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.30.0, 1.30.1, 1.32.0]</li>
<li>Operating System: [Windows 10, CentOS 8]</li>
<li>Browser: [Firefox]</li>
<li>Other info:<br>
Starting with version 1.30.0, when viewportsize is larger than the physical dimensions of a computer display, visual elements are active, available, stable, but it is not possible to perform clicks. In version 1.29.0 everything works good.<br>
In my Linux system display resolution is 1280x666.<br>
<em>Note: This code works correctly in headless mode.</em></li>
</ul>
<h3 dir="auto">Source code</h3>
<div class="highlight highlight-source-cs notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using Microsoft.Playwright;

bool headless = false;
if (!string.IsNullOrEmpty(args[0]) &amp;&amp; args[0] == &quot;-headless&quot;)
{
    headless = true;
}

Console.WriteLine(&quot;Started.&quot;);

var playwright = await Playwright.CreateAsync();
IBrowserType browsertype = playwright.Firefox;

Proxy proxy = new() 
{ 
    Server = &quot;111.222.333.444:5555&quot;,
    Username = &quot;username&quot;,
    Password = &quot;password&quot;,
};
List&lt;string&gt; listArgs = new()
{
    &quot;--start-maximized&quot;,
};

var launchOptions = new BrowserTypeLaunchOptions()
{
    Headless = headless,
    Proxy = proxy,
    Args = listArgs,
};
var browser = await browsertype.LaunchAsync(launchOptions);

var contextOptions = new BrowserNewContextOptions
{
    ViewportSize = new() { Width = 1920, Height = 1080 },
};
var context = await browser.NewContextAsync(contextOptions);
var page = await context.NewPageAsync();

await page.GotoAsync(&quot;https://twitter.com/&quot;, new() { WaitUntil = WaitUntilState.Load });

var locator = page.FrameLocator(&quot;//iframe[@title='Sign in with Google Dialog']&quot;).Locator(&quot;//div[@id='close']&quot;);
try
{
    Console.WriteLine(&quot;Clicking: Close Google Dialog&quot;);
    await locator.ClickAsync();
}
catch (Exception ex)
{
    Console.WriteLine($&quot;Error:\n{ex.Message}\n{ex.StackTrace}&quot;);
}

locator = page.Locator(&quot;//a[@data-testid='login']&quot;).Locator(&quot;visible=true&quot;);
try
{
    await locator.WaitForAsync(new LocatorWaitForOptions() { State = WaitForSelectorState.Visible });
}
catch (Exception ex)
{
    Console.WriteLine($&quot;Error:\n{ex.Message}\n{ex.StackTrace}&quot;);
}

try
{
    Console.WriteLine(&quot;Clicking: Sign in&quot;);
    await locator.ClickAsync(new LocatorClickOptions() { Timeout = 10000 });
}
catch (Exception ex)
{
    Console.WriteLine($&quot;Error:\n{ex.Message}\n{ex.StackTrace}&quot;);
}

Console.WriteLine(&quot;Finished. Press any key.&quot;);
Console.ReadKey();"><pre class="notranslate"><span class="pl-k">using</span> Microsoft<span class="pl-kos">.</span>Playwright<span class="pl-kos">;</span>

<span class="pl-smi">bool</span> <span class="pl-s1">headless</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-smi">string</span><span class="pl-kos">.</span><span class="pl-en">IsNullOrEmpty</span><span class="pl-kos">(</span>args<span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">&amp;&amp;</span> args<span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-c1">==</span> <span class="pl-s"><span class="pl-s">"</span>-headless<span class="pl-s">"</span></span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
    <span class="pl-s1">headless</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>Started.<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-smi">var</span> <span class="pl-s1">playwright</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> Playwright<span class="pl-kos">.</span><span class="pl-en">CreateAsync</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">IBrowserType</span> <span class="pl-s1">browsertype</span> <span class="pl-c1">=</span> playwright<span class="pl-kos">.</span>Firefox<span class="pl-kos">;</span>

<span class="pl-smi">Proxy</span> <span class="pl-s1">proxy</span> <span class="pl-c1">=</span> <span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span> 
<span class="pl-kos">{</span> 
    <span class="pl-s1">Server</span> <span class="pl-c1">=</span> <span class="pl-s"><span class="pl-s">"</span>111.222.333.444:5555<span class="pl-s">"</span></span><span class="pl-kos">,</span>
    <span class="pl-s1">Username</span> <span class="pl-c1">=</span> <span class="pl-s"><span class="pl-s">"</span>username<span class="pl-s">"</span></span><span class="pl-kos">,</span>
    <span class="pl-s1">Password</span> <span class="pl-c1">=</span> <span class="pl-s"><span class="pl-s">"</span>password<span class="pl-s">"</span></span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-smi">List</span><span class="pl-c1">&lt;</span><span class="pl-smi">string</span><span class="pl-c1">&gt;</span> <span class="pl-s1">listArgs</span> <span class="pl-c1">=</span> <span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
    <span class="pl-s"><span class="pl-s">"</span>--start-maximized<span class="pl-s">"</span></span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>

<span class="pl-smi">var</span> <span class="pl-s1">launchOptions</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> BrowserTypeLaunchOptions<span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
    <span class="pl-s1">Headless</span> <span class="pl-c1">=</span> <span class="pl-s1">headless</span><span class="pl-kos">,</span>
    <span class="pl-s1">Proxy</span> <span class="pl-c1">=</span> <span class="pl-s1">proxy</span><span class="pl-kos">,</span>
    <span class="pl-s1">Args</span> <span class="pl-c1">=</span> <span class="pl-s1">listArgs</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-smi">var</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> browsertype<span class="pl-kos">.</span><span class="pl-en">LaunchAsync</span><span class="pl-kos">(</span>launchOptions<span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-smi">var</span> <span class="pl-s1">contextOptions</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> BrowserNewContextOptions
<span class="pl-kos">{</span>
    <span class="pl-s1">ViewportSize</span> <span class="pl-c1">=</span> <span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">Width</span> <span class="pl-c1">=</span> <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-s1">Height</span> <span class="pl-c1">=</span> <span class="pl-c1">1080</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-smi">var</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> browser<span class="pl-kos">.</span><span class="pl-en">NewContextAsync</span><span class="pl-kos">(</span>contextOptions<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">var</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> context<span class="pl-kos">.</span><span class="pl-en">NewPageAsync</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-k">await</span> page<span class="pl-kos">.</span><span class="pl-en">GotoAsync</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>https://twitter.com/<span class="pl-s">"</span></span><span class="pl-kos">,</span> <span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">WaitUntil</span> <span class="pl-c1">=</span> WaitUntilState<span class="pl-kos">.</span>Load <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-smi">var</span> <span class="pl-s1">locator</span> <span class="pl-c1">=</span> page<span class="pl-kos">.</span><span class="pl-en">FrameLocator</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>//iframe[@title='Sign in with Google Dialog']<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">Locator</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>//div[@id='close']<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">try</span>
<span class="pl-kos">{</span>
    Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>Clicking: Close Google Dialog<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-k">await</span> locator<span class="pl-kos">.</span><span class="pl-en">ClickAsync</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-smi">Exception</span> <span class="pl-s1">ex</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
    Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s">$"</span><span class="pl-s">Error:</span><span class="pl-s"><span class="pl-k">\n</span></span><span class="pl-kos">{</span>ex<span class="pl-kos">.</span>Message<span class="pl-kos">}</span><span class="pl-s"><span class="pl-k">\n</span></span><span class="pl-kos">{</span>ex<span class="pl-kos">.</span>StackTrace<span class="pl-kos">}</span><span class="pl-s">"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-s1">locator</span> <span class="pl-c1">=</span> page<span class="pl-kos">.</span><span class="pl-en">Locator</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>//a[@data-testid='login']<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">Locator</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>visible=true<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">try</span>
<span class="pl-kos">{</span>
    <span class="pl-k">await</span> locator<span class="pl-kos">.</span><span class="pl-en">WaitForAsync</span><span class="pl-kos">(</span><span class="pl-k">new</span> LocatorWaitForOptions<span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">State</span> <span class="pl-c1">=</span> WaitForSelectorState<span class="pl-kos">.</span>Visible <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-smi">Exception</span> <span class="pl-s1">ex</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
    Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s">$"</span><span class="pl-s">Error:</span><span class="pl-s"><span class="pl-k">\n</span></span><span class="pl-kos">{</span>ex<span class="pl-kos">.</span>Message<span class="pl-kos">}</span><span class="pl-s"><span class="pl-k">\n</span></span><span class="pl-kos">{</span>ex<span class="pl-kos">.</span>StackTrace<span class="pl-kos">}</span><span class="pl-s">"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-k">try</span>
<span class="pl-kos">{</span>
    Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>Clicking: Sign in<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-k">await</span> locator<span class="pl-kos">.</span><span class="pl-en">ClickAsync</span><span class="pl-kos">(</span><span class="pl-k">new</span> LocatorClickOptions<span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">Timeout</span> <span class="pl-c1">=</span> <span class="pl-c1">10000</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-smi">Exception</span> <span class="pl-s1">ex</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
    Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s">$"</span><span class="pl-s">Error:</span><span class="pl-s"><span class="pl-k">\n</span></span><span class="pl-kos">{</span>ex<span class="pl-kos">.</span>Message<span class="pl-kos">}</span><span class="pl-s"><span class="pl-k">\n</span></span><span class="pl-kos">{</span>ex<span class="pl-kos">.</span>StackTrace<span class="pl-kos">}</span><span class="pl-s">"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

Console<span class="pl-kos">.</span><span class="pl-en">WriteLine</span><span class="pl-kos">(</span><span class="pl-s"><span class="pl-s">"</span>Finished. Press any key.<span class="pl-s">"</span></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
Console<span class="pl-kos">.</span><span class="pl-en">ReadKey</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>




<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;

  &lt;PropertyGroup&gt;
    &lt;OutputType&gt;Exe&lt;/OutputType&gt;
    &lt;TargetFramework&gt;net7.0&lt;/TargetFramework&gt;
    &lt;ImplicitUsings&gt;enable&lt;/ImplicitUsings&gt;
    &lt;Nullable&gt;enable&lt;/Nullable&gt;
  &lt;/PropertyGroup&gt;

  &lt;PropertyGroup Condition=&quot;'$(Configuration)|$(Platform)'=='Debug|AnyCPU'&quot;&gt;
    &lt;DebugType&gt;embedded&lt;/DebugType&gt;
  &lt;/PropertyGroup&gt;

  &lt;PropertyGroup Condition=&quot;'$(Configuration)|$(Platform)'=='Release|AnyCPU'&quot;&gt;
    &lt;DebugType&gt;embedded&lt;/DebugType&gt;
  &lt;/PropertyGroup&gt;

  &lt;ItemGroup&gt;
    &lt;PackageReference Include=&quot;Microsoft.Playwright&quot; Version=&quot;1.32.0&quot; /&gt;
  &lt;/ItemGroup&gt;

&lt;/Project&gt;"><pre class="notranslate">&lt;<span class="pl-ent">Project</span> <span class="pl-e">Sdk</span>=<span class="pl-s"><span class="pl-pds">"</span>Microsoft.NET.Sdk<span class="pl-pds">"</span></span>&gt;

  &lt;<span class="pl-ent">PropertyGroup</span>&gt;
    &lt;<span class="pl-ent">OutputType</span>&gt;Exe&lt;/<span class="pl-ent">OutputType</span>&gt;
    &lt;<span class="pl-ent">TargetFramework</span>&gt;net7.0&lt;/<span class="pl-ent">TargetFramework</span>&gt;
    &lt;<span class="pl-ent">ImplicitUsings</span>&gt;enable&lt;/<span class="pl-ent">ImplicitUsings</span>&gt;
    &lt;<span class="pl-ent">Nullable</span>&gt;enable&lt;/<span class="pl-ent">Nullable</span>&gt;
  &lt;/<span class="pl-ent">PropertyGroup</span>&gt;

  &lt;<span class="pl-ent">PropertyGroup</span> <span class="pl-e">Condition</span>=<span class="pl-s"><span class="pl-pds">"</span>'$(Configuration)|$(Platform)'=='Debug|AnyCPU'<span class="pl-pds">"</span></span>&gt;
    &lt;<span class="pl-ent">DebugType</span>&gt;embedded&lt;/<span class="pl-ent">DebugType</span>&gt;
  &lt;/<span class="pl-ent">PropertyGroup</span>&gt;

  &lt;<span class="pl-ent">PropertyGroup</span> <span class="pl-e">Condition</span>=<span class="pl-s"><span class="pl-pds">"</span>'$(Configuration)|$(Platform)'=='Release|AnyCPU'<span class="pl-pds">"</span></span>&gt;
    &lt;<span class="pl-ent">DebugType</span>&gt;embedded&lt;/<span class="pl-ent">DebugType</span>&gt;
  &lt;/<span class="pl-ent">PropertyGroup</span>&gt;

  &lt;<span class="pl-ent">ItemGroup</span>&gt;
    &lt;<span class="pl-ent">PackageReference</span> <span class="pl-e">Include</span>=<span class="pl-s"><span class="pl-pds">"</span>Microsoft.Playwright<span class="pl-pds">"</span></span> <span class="pl-e">Version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.32.0<span class="pl-pds">"</span></span> /&gt;
  &lt;/<span class="pl-ent">ItemGroup</span>&gt;

&lt;/<span class="pl-ent">Project</span>&gt;</pre></div>
<h3 dir="auto">Steps</h3>
<p dir="auto">Run the app</p>
<h3 dir="auto">Expected</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Started.
Clicking: Close Google Dialog
Clicking: Sign in
Finished. Press any key."><pre class="notranslate"><code class="notranslate">Started.
Clicking: Close Google Dialog
Clicking: Sign in
Finished. Press any key.
</code></pre></div>
<h3 dir="auto">Actual</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Started.
Clicking: Close Google Dialog
Error:
Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for FrameLocator(&quot;xpath=//iframe[@title='Sign in with Google Dialog']&quot;).Locator(&quot;xpath=//div[@id='close']&quot;)
  locator resolved to &lt;div id=&quot;close&quot; tabindex=&quot;0&quot; role=&quot;button&quot; aria-label…&gt;…&lt;/div&gt;
attempting click action
  waiting for element to be visible, enabled and stable
  element is visible, enabled and stable
  scrolling into view if needed
  done scrolling
  performing click action
============================================================
   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary`2 dictionary) in /_/src/Playwright/Transport/Connection.cs:line 180
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 502
   at Program.&lt;Main&gt;$(String[] args) in D:\source\repos\XTestPW\XTestPW\Program.cs:line 47
Clicking: Sign in
Error:
Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for Locator(&quot;xpath=//a[@data-testid='login']&quot;).Locator(&quot;visible=true&quot;)
  locator resolved to &lt;a role=&quot;link&quot; href=&quot;/login&quot; data-testid=&quot;login&quot; cl…&gt;…&lt;/a&gt;
attempting click action
  waiting for element to be visible, enabled and stable
  element is visible, enabled and stable
  scrolling into view if needed
  done scrolling
  performing click action
============================================================
   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary`2 dictionary) in /_/src/Playwright/Transport/Connection.cs:line 180
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 502
   at Program.&lt;Main&gt;$(String[] args) in D:\source\repos\XTestPW\XTestPW\Program.cs:line 67
Finished. Press any key."><pre class="notranslate"><code class="notranslate">Started.
Clicking: Close Google Dialog
Error:
Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for FrameLocator("xpath=//iframe[@title='Sign in with Google Dialog']").Locator("xpath=//div[@id='close']")
  locator resolved to &lt;div id="close" tabindex="0" role="button" aria-label…&gt;…&lt;/div&gt;
attempting click action
  waiting for element to be visible, enabled and stable
  element is visible, enabled and stable
  scrolling into view if needed
  done scrolling
  performing click action
============================================================
   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary`2 dictionary) in /_/src/Playwright/Transport/Connection.cs:line 180
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 502
   at Program.&lt;Main&gt;$(String[] args) in D:\source\repos\XTestPW\XTestPW\Program.cs:line 47
Clicking: Sign in
Error:
Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for Locator("xpath=//a[@data-testid='login']").Locator("visible=true")
  locator resolved to &lt;a role="link" href="/login" data-testid="login" cl…&gt;…&lt;/a&gt;
attempting click action
  waiting for element to be visible, enabled and stable
  element is visible, enabled and stable
  scrolling into view if needed
  done scrolling
  performing click action
============================================================
   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary`2 dictionary) in /_/src/Playwright/Transport/Connection.cs:line 180
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 502
   at Program.&lt;Main&gt;$(String[] args) in D:\source\repos\XTestPW\XTestPW\Program.cs:line 67
Finished. Press any key.
</code></pre></div>
<h2 dir="auto">Also please note the following errors:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary`2 dictionary) in /_/src/Playwright/Transport/Connection.cs:line 202
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 508"><pre class="notranslate"><code class="notranslate">   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](String guid, String method, Dictionary`2 dictionary) in /_/src/Playwright/Transport/Connection.cs:line 202
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 508
</code></pre></div>
<h3 dir="auto">Thank you</h3>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.35]</li>
<li>Operating System: [All]</li>
<li>Browser: [WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><a href="https://github.com/VeronikaHillebrand/bug-report-playwright-webkit">https://github.com/VeronikaHillebrand/bug-report-playwright-webkit</a></p>
<p dir="auto">As you can see, Chromium and Firefox tests pass, Webkit fails:</p>
<p dir="auto"><a href="https://github.com/VeronikaHillebrand/bug-report-playwright-webkit/actions/runs/5401042799/jobs/9810308767">https://github.com/VeronikaHillebrand/bug-report-playwright-webkit/actions/runs/5401042799/jobs/9810308767</a></p>
<p dir="auto">The last version of Playwright which worked correctly was 1.34</p>
<p dir="auto">The error showing in the console is "TypeError: Attempting to define property on object that is not extensible."</p>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/128626672/249468288-f8d32a9f-e71e-4943-a4a9-04a7274d2a42.png"><img width="1249" alt="image" src="https://user-images.githubusercontent.com/128626672/249468288-f8d32a9f-e71e-4943-a4a9-04a7274d2a42.png" style="max-width: 100%;"></a>
<p dir="auto">PS: The app works fine in Safari.</p>