<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.34.3</li>
<li>Operating System: Windows 11</li>
<li>Browser: Chromium</li>
<li>Other info: n/a</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>




<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><a href="https://github.com/kumarchandresh/playwright-issues">kumarchandresh/playwright-issues</a></p>
<p dir="auto"><strong>Steps</strong></p>
<ol dir="auto">
<li>Run the test.</li>
<li>See it fail.</li>
<li>Replace <code class="notranslate">/ancestor::</code> with <code class="notranslate">xpath=/ancestor::</code> or <code class="notranslate">//ancestor::</code> in the source code.</li>
<li>Run the test again.</li>
<li>See it pass.</li>
</ol>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Test should NOT fail at step 2.</p>
<p dir="auto">NOTE: If <code class="notranslate">xpath=/ancestor::</code> is a valid selector for Playwright, then <code class="notranslate">/ancestor::</code> should be too since Playwright can auto detect the type of selector being used.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">Test fails at step 2.</p>
<p dir="auto">For send array "data[product]" I write<br>
"data[product][]:18<br>
data[product][]:55"</p>
<p dir="auto">In postman it looks like this:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/83776173/197211761-40c4d320-8463-4217-8158-f9628dfd8275.png"><img src="https://user-images.githubusercontent.com/83776173/197211761-40c4d320-8463-4217-8158-f9628dfd8275.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">How to make similar array to playwright?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/83776173/197219628-c3ae290a-6f26-410a-881e-e623951bf8eb.png"><img src="https://user-images.githubusercontent.com/83776173/197219628-c3ae290a-6f26-410a-881e-e623951bf8eb.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The following method is not working properly:<br>
"data[product_ids][]": [18, 55]</p>