<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mouse on Grafana Labs</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/</link><description>Recent content in Mouse on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/index.xml" rel="self" type="application/rss+xml"/><item><title>click(x, y[, options])</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/click/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/click/</guid><content><![CDATA[&lt;h1 id=&#34;clickx-y-options&#34;&gt;click(x, y[, options])&lt;/h1&gt;
&lt;p&gt;Mouse clicks on the &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; coordinates. It&amp;rsquo;s a shorthand for calling 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/&#34;&gt;&lt;code&gt;mouse.move(x, y)&lt;/code&gt;&lt;/a&gt; followed by 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/down/&#34;&gt;&lt;code&gt;mouse.down()&lt;/code&gt;&lt;/a&gt; and 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/up/&#34;&gt;&lt;code&gt;mouse.up()&lt;/code&gt;&lt;/a&gt;. This is useful for simulating a single mouse click.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Parameter&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;x&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The x-coordinate to click on.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;y&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The y-coordinate to click on.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options&lt;/td&gt;
              &lt;td&gt;object&lt;/td&gt;
              &lt;td&gt;Optional.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.button&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;The mouse button to click. Possible values are &lt;code&gt;&#39;left&#39;&lt;/code&gt;, &lt;code&gt;&#39;right&#39;&lt;/code&gt;, and &lt;code&gt;&#39;middle&#39;&lt;/code&gt;. Default is &lt;code&gt;&#39;left&#39;&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.clickCount&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The number of times to click. Default is &lt;code&gt;1&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.delay&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The delay in milliseconds between &lt;code&gt;mousedown&lt;/code&gt; and &lt;code&gt;mouseup&lt;/code&gt; events. Default is &lt;code&gt;0&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;returns&#34;&gt;Returns&lt;/h3&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;Promise&amp;lt;void&amp;gt;&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;A Promise that fulfills when the mouse click action is complete.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="clickx-y-options">click(x, y[, options])&lt;/h1>
&lt;p>Mouse clicks on the &lt;code>x&lt;/code> and &lt;code>y&lt;/code> coordinates. It&amp;rsquo;s a shorthand for calling
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/">&lt;code>mouse.move(x, y)&lt;/code>&lt;/a> followed by
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/down/">&lt;code>mouse.down()&lt;/code>&lt;/a> and
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/up/">&lt;code>mouse.up()&lt;/code>&lt;/a>. This is useful for simulating a single mouse click.&lt;/p></description></item><item><title>dblclick(x, y[, options])</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/dblclick/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/dblclick/</guid><content><![CDATA[&lt;h1 id=&#34;dblclickx-y-options&#34;&gt;dblclick(x, y[, options])&lt;/h1&gt;
&lt;p&gt;Mouse double clicks on the &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; coordinates. Similar to 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/click/&#34;&gt;&lt;code&gt;mouse.click()&lt;/code&gt;&lt;/a&gt;, but it simulates a double click.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Parameter&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;x&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The x-coordinate to double click on.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;y&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The y-coordinate to double click on.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options&lt;/td&gt;
              &lt;td&gt;object&lt;/td&gt;
              &lt;td&gt;Optional.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.button&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;The mouse button to double click. Possible values are &lt;code&gt;&#39;left&#39;&lt;/code&gt;, &lt;code&gt;&#39;right&#39;&lt;/code&gt;, and &lt;code&gt;&#39;middle&#39;&lt;/code&gt;. Default is &lt;code&gt;&#39;left&#39;&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.delay&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The delay in milliseconds between &lt;code&gt;mousedown&lt;/code&gt; and &lt;code&gt;mouseup&lt;/code&gt; events. Default is &lt;code&gt;0&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;returns&#34;&gt;Returns&lt;/h3&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;Promise&amp;lt;void&amp;gt;&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;A Promise that fulfills when the mouse double click action is complete.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="dblclickx-y-options">dblclick(x, y[, options])&lt;/h1>
&lt;p>Mouse double clicks on the &lt;code>x&lt;/code> and &lt;code>y&lt;/code> coordinates. Similar to
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/click/">&lt;code>mouse.click()&lt;/code>&lt;/a>, but it simulates a double click.&lt;/p>
&lt;section class="expand-table-wrapper">&lt;div class="button-div">
&lt;button class="expand-table-btn">Expand table&lt;/button>
&lt;/div>&lt;div class="responsive-table-wrapper">
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Parameter&lt;/th>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>x&lt;/td>
&lt;td>number&lt;/td>
&lt;td>The x-coordinate to double click on.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>y&lt;/td>
&lt;td>number&lt;/td>
&lt;td>The y-coordinate to double click on.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options&lt;/td>
&lt;td>object&lt;/td>
&lt;td>Optional.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options.button&lt;/td>
&lt;td>string&lt;/td>
&lt;td>The mouse button to double click. Possible values are &lt;code>'left'&lt;/code>, &lt;code>'right'&lt;/code>, and &lt;code>'middle'&lt;/code>. Default is &lt;code>'left'&lt;/code>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options.delay&lt;/td>
&lt;td>number&lt;/td>
&lt;td>The delay in milliseconds between &lt;code>mousedown&lt;/code> and &lt;code>mouseup&lt;/code> events. Default is &lt;code>0&lt;/code>.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/div>
&lt;/section>&lt;h3 id="returns">Returns&lt;/h3>
&lt;section class="expand-table-wrapper">&lt;div class="button-div">
&lt;button class="expand-table-btn">Expand table&lt;/button>
&lt;/div>&lt;div class="responsive-table-wrapper">
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;code>Promise&amp;lt;void&amp;gt;&lt;/code>&lt;/td>
&lt;td>A Promise that fulfills when the mouse double click action is complete.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/div>
&lt;/section></description></item><item><title>down([options])</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/down/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/down/</guid><content><![CDATA[&lt;h1 id=&#34;downoptions&#34;&gt;down([options])&lt;/h1&gt;
&lt;p&gt;Dispatches a &lt;code&gt;mousedown&lt;/code&gt; event on the mouse&amp;rsquo;s current position. Mouse&amp;rsquo;s current position can be changed using 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/&#34;&gt;&lt;code&gt;mouse.move()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Parameter&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;options&lt;/td&gt;
              &lt;td&gt;object&lt;/td&gt;
              &lt;td&gt;Optional.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.button&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;The mouse button to click. Possible values are &lt;code&gt;&#39;left&#39;&lt;/code&gt;, &lt;code&gt;&#39;right&#39;&lt;/code&gt;, and &lt;code&gt;&#39;middle&#39;&lt;/code&gt;. Default is &lt;code&gt;&#39;left&#39;&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.clickCount&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The number of times to click. Default is &lt;code&gt;1&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;returns&#34;&gt;Returns&lt;/h3&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;Promise&amp;lt;void&amp;gt;&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;A Promise that fulfills when the mouse down action is complete.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="downoptions">down([options])&lt;/h1>
&lt;p>Dispatches a &lt;code>mousedown&lt;/code> event on the mouse&amp;rsquo;s current position. Mouse&amp;rsquo;s current position can be changed using
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/">&lt;code>mouse.move()&lt;/code>&lt;/a>.&lt;/p>
&lt;section class="expand-table-wrapper">&lt;div class="button-div">
&lt;button class="expand-table-btn">Expand table&lt;/button>
&lt;/div>&lt;div class="responsive-table-wrapper">
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Parameter&lt;/th>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>options&lt;/td>
&lt;td>object&lt;/td>
&lt;td>Optional.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options.button&lt;/td>
&lt;td>string&lt;/td>
&lt;td>The mouse button to click. Possible values are &lt;code>'left'&lt;/code>, &lt;code>'right'&lt;/code>, and &lt;code>'middle'&lt;/code>. Default is &lt;code>'left'&lt;/code>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options.clickCount&lt;/td>
&lt;td>number&lt;/td>
&lt;td>The number of times to click. Default is &lt;code>1&lt;/code>.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/div>
&lt;/section>&lt;h3 id="returns">Returns&lt;/h3>
&lt;section class="expand-table-wrapper">&lt;div class="button-div">
&lt;button class="expand-table-btn">Expand table&lt;/button>
&lt;/div>&lt;div class="responsive-table-wrapper">
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;code>Promise&amp;lt;void&amp;gt;&lt;/code>&lt;/td>
&lt;td>A Promise that fulfills when the mouse down action is complete.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/div>
&lt;/section></description></item><item><title>move(x, y[, options])</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/</guid><content><![CDATA[&lt;h1 id=&#34;movex-y-options&#34;&gt;move(x, y[, options])&lt;/h1&gt;
&lt;p&gt;Mouse moves to the &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; coordinates. This is useful for simulating mouse movement. The &lt;code&gt;step&lt;/code&gt; option is the number of steps the mouse will take to move from the current position to the target position. The higher the step count, the smoother the movement will be.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Parameter&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;x&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The x-coordinate to move to.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;y&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The y-coordinate to move to.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options&lt;/td&gt;
              &lt;td&gt;object&lt;/td&gt;
              &lt;td&gt;Optional.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.steps&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The number of steps to take to move the mouse. Default is &lt;code&gt;1&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;returns&#34;&gt;Returns&lt;/h3&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;Promise&amp;lt;void&amp;gt;&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;A Promise that fulfills when the mouse up action is complete.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="movex-y-options">move(x, y[, options])&lt;/h1>
&lt;p>Mouse moves to the &lt;code>x&lt;/code> and &lt;code>y&lt;/code> coordinates. This is useful for simulating mouse movement. The &lt;code>step&lt;/code> option is the number of steps the mouse will take to move from the current position to the target position. The higher the step count, the smoother the movement will be.&lt;/p></description></item><item><title>up([options])</title><link>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/up/</link><pubDate>Mon, 21 Sep 2026 15:16:28 +0000</pubDate><guid>https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/up/</guid><content><![CDATA[&lt;h1 id=&#34;upoptions&#34;&gt;up([options])&lt;/h1&gt;
&lt;p&gt;Dispatches a &lt;code&gt;mouseup&lt;/code&gt; event on the mouse&amp;rsquo;s current position. Mouse&amp;rsquo;s current position can be changed using 
    &lt;a href=&#34;/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/&#34;&gt;&lt;code&gt;mouse.move()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Parameter&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;options&lt;/td&gt;
              &lt;td&gt;object&lt;/td&gt;
              &lt;td&gt;Optional.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.button&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;The mouse button to click. Possible values are &lt;code&gt;&#39;left&#39;&lt;/code&gt;, &lt;code&gt;&#39;right&#39;&lt;/code&gt;, and &lt;code&gt;&#39;middle&#39;&lt;/code&gt;. Default is &lt;code&gt;&#39;left&#39;&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;options.clickCount&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;The number of times to click. Default is &lt;code&gt;1&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h3 id=&#34;returns&#34;&gt;Returns&lt;/h3&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;Promise&amp;lt;void&amp;gt;&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;A Promise that fulfills when the mouse up action is complete.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;]]></content><description>&lt;h1 id="upoptions">up([options])&lt;/h1>
&lt;p>Dispatches a &lt;code>mouseup&lt;/code> event on the mouse&amp;rsquo;s current position. Mouse&amp;rsquo;s current position can be changed using
&lt;a href="/docs/k6/v2.3.x/javascript-api/k6-browser/mouse/move/">&lt;code>mouse.move()&lt;/code>&lt;/a>.&lt;/p>
&lt;section class="expand-table-wrapper">&lt;div class="button-div">
&lt;button class="expand-table-btn">Expand table&lt;/button>
&lt;/div>&lt;div class="responsive-table-wrapper">
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Parameter&lt;/th>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>options&lt;/td>
&lt;td>object&lt;/td>
&lt;td>Optional.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options.button&lt;/td>
&lt;td>string&lt;/td>
&lt;td>The mouse button to click. Possible values are &lt;code>'left'&lt;/code>, &lt;code>'right'&lt;/code>, and &lt;code>'middle'&lt;/code>. Default is &lt;code>'left'&lt;/code>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>options.clickCount&lt;/td>
&lt;td>number&lt;/td>
&lt;td>The number of times to click. Default is &lt;code>1&lt;/code>.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/div>
&lt;/section>&lt;h3 id="returns">Returns&lt;/h3>
&lt;section class="expand-table-wrapper">&lt;div class="button-div">
&lt;button class="expand-table-btn">Expand table&lt;/button>
&lt;/div>&lt;div class="responsive-table-wrapper">
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Type&lt;/th>
&lt;th>Description&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;code>Promise&amp;lt;void&amp;gt;&lt;/code>&lt;/td>
&lt;td>A Promise that fulfills when the mouse up action is complete.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;/div>
&lt;/section></description></item></channel></rss>