> For the complete documentation index, see [llms.txt](https://abi.gitbook.io/net-core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abi.gitbook.io/net-core/9.-pruebas-de-integracion/14.3-que-es-playwright/14.4.1-playwright-instrucciones-basicas.md).

# 14.4.1 Playwright Instrucciones básicas

La versión que primero incorpora todas las mejoras es la versión de node para Javascript y Typescript. Explicaré los ejemplos con C# ya que el curso es de .Net

<table><thead><tr><th width="485.0826010544816">Función</th><th>Descripción</th></tr></thead><tbody><tr><td><p></p><pre><code>    using var playwright 
      = await Playwright.CreateAsync();
    await using var browser
     = await playwright.Chromium.LaunchAsync();
</code></pre></td><td>Para iniciar un nuevo navegador Crhomium debes utilizar las 2 instrucciones.</td></tr><tr><td><code>await browser.NewContextAsync()</code></td><td>Crea una nueva instancia del navegador en modo Incógnito</td></tr><tr><td><code>await context.NewPageAsync()</code></td><td>Crea una página para empezar a interactuar con ella.</td></tr><tr><td><code>await page.GotoAsync("https://www.wikipedia.org")</code></td><td>Navega a la página wikipedia.org</td></tr><tr><td><code>await page.ClickAsync("input[name=</code>\"<code>login</code>\"<code>]")</code></td><td>Da clic en un input con el nombre <strong>login</strong></td></tr><tr><td><code>await page.FillAsync("input[name="search"]", "Testing")</code></td><td>Teclea la palabra <strong>Testing</strong> en un input con el nombre <strong>search</strong></td></tr><tr><td><code>await handle.SelectOptionAsync(new[] { "blue" })</code></td><td>Seleccciona de</td></tr></tbody></table>
