<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Readul Hasan Chayan [Heemayl] (Posts about test)</title><link>https://heemayl.net/</link><description></description><atom:link href="https://heemayl.net/categories/test.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:me@heemayl.net"&gt;Readul Hasan Chayan [Heemayl]&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-top: 10px; margin-bottom: 5px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;
</copyright><lastBuildDate>Thu, 07 Mar 2024 19:03:10 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Nightwatch.js Selenium e2e test: input field clearing issue</title><link>https://heemayl.net/posts/nightwatchjs-selenium-e2e-test-input-field-clearing-issue/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;While doing the e2e (end to end) tests for a &lt;a href="https://vuejs.org/"&gt;Vue.JS&lt;/a&gt; frontend, I bumped into something interesting, which was really fun to fix/find a workaround for.&lt;/p&gt;
&lt;p&gt;Firstly, for the e2e tests, I've used &lt;a href="http://nightwatchjs.org/"&gt;Nightwatch.js&lt;/a&gt;, which uses the Selenium API, and is written in Node.js.&lt;/p&gt;
&lt;p&gt;The problem was that, I was not being able to clear some &lt;code&gt;input&lt;/code&gt; tag field data using the API provided by Nightwatch -- &lt;a href="http://nightwatchjs.org/api/clearValue.html"&gt;&lt;code&gt;browser.clearValue&lt;/code&gt;&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre class="code literal-block"&gt;browser.clearValue('input[type="text"]')
&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/nightwatchjs-selenium-e2e-test-input-field-clearing-issue/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>e2e</category><category>frontend</category><category>nightwatch</category><category>selenium</category><category>test</category><category>vue_js</category><guid>https://heemayl.net/posts/nightwatchjs-selenium-e2e-test-input-field-clearing-issue/</guid><pubDate>Thu, 10 Jan 2019 11:42:58 GMT</pubDate></item></channel></rss>