Opening Right-click Menu / Context menu with Selenium WebDriver

Selenium WebDriver providesActionBuilder to perform complex user interactions with a web page. It allows chaining multiple actions together to perform a complex action. You can create a complex action and execute the action (perform) it in the following manner. (Ruby) The action to open the context menu is context_click() . By default, it will click on the middle of the element if you provide one. Otherwise, it will click where the mouse pointer is at....

March 24, 2018 · Sinaru Gunawardena

How to ignore PostgreSQL tables when restoring a database

At my current workplace, we use a copy of the backup database which is created by pg_dump to restore in our development machines. Since the database has a lot of audit tables which adds up a lot of space, I needed an easier way to ignore these tables when restoring the database. Apparently pg_restore can generate a list of tables in the dump file archive. The advantage is that we can use the same list to specify what content we need to restore....

March 6, 2018 · Sinaru Gunawardena

Wexford, Ireland

I traveled to Wexford with my office colleague on the weekend. IT was a nice county and we traveled to a number of places.

February 18, 2018 · Sinaru Gunawardena

Improving online gaming experience over IEEE 802.11ac WiFi

This article is how to get a great online gaming experience with a stable and fast WiFi connection over IEEE 802.11ac. This article only focuses on IEEE 802.11ac because it is the best wifi standard we have right now for a great wifi experience that can sometimes be equivalent to Ethernet cables if not better for the daily average user. If you want to go beyond you can try 802.11ad but there are drawbacks for the average user(see below)....

January 6, 2018 · Sinaru Gunawardena

Belfast, Ireland

Belfast is the capital of Northern Ireland. It is also popular as the place where Titanic was built.

December 24, 2017 · Sinaru Gunawardena

Vagrant – Running Rails server in the background

<p> It is pretty easy. First, let&#8217;s create a function for the script block. Put following code on the top of the Vagrant file. </p> </div> </div> </div> <div id="panel-1302-0-0-1" class="so-panel widget widget_sow-editor" data-index="1" data-style="{&quot;background_display&quot;:&quot;tile&quot;}" > <div class="so-widget-sow-editor so-widget-sow-editor-base"> <div class="siteorigin-widget-tinymce textwidget"> <pre>def start_rails_server <<-SHELL cd /vagrant start rails server as a daemon to kill: sudo kill cat tmp/pids/ rails s -d SHELL end <div id="panel-1302-0-0-2" class="so-panel widget widget_sow-editor" data-index="2" data-style="{&quot;background_display&quot;:&quot;tile&quot;}" > <div class="so-widget-sow-editor so-widget-sow-editor-base"> <div class="siteorigin-widget-tinymce textwidget"> <p> Now in the Vagrantfile configuration block, use the script function and set it to run always....

October 18, 2017 · Sinaru Gunawardena

Setting up Ruby SDK for RubyMine with Vagrant

This article is about how you can configure to use the Ruby SDK in your Vagrant image with RubyMine. For this, I have used the joshfng/railsbox Vagrant image because I was using that image for a Rails project. First you have to find where is your Ruby interpreter located for your project. Let’s assume your project lies in the same folder where you have Vagrantfile. In this case, by default the /vagrant folder in the vagrant image will contain your code....

October 12, 2017 · Sinaru Gunawardena

Londonderry, Northern Ireland

<a href=“” data-rel=“lightbox-image-0” data-rl_title="" data-rl_caption="" title=""> <a href=“” data-rel=“lightbox-image-1” data-rl_title="" data-rl_caption="" title=""> <a href=“” data-rel=“lightbox-image-2” data-rl_title="" data-rl_caption="" title="">

October 8, 2017 · Sinaru Gunawardena

Donegal city, Ireland

I visited Donegal today. Took a bus from Dublin to Donegal for almost four hours then walked around the city.

October 7, 2017 · Sinaru Gunawardena

Galway, Ireland

Sep 11, 2017

September 12, 2017 · Sinaru Gunawardena