# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abi.gitbook.io/net-core/9.-pruebas-de-integracion/14.3-que-es-playwright/14.4.1-playwright-instrucciones-basicas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
