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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
