Monthly Archive: June 2016

1

Ruby on Rails cheatsheet

Creating a new rails project Using MySQL as the database rails new myapp -d mysql Using postgres as the database rails new myapp -d postgresql Installing Gems To manually install gems that you add,...

0

Selenium and xpath – locate an element using class attribute

Issue : Locate the following element using its Class. <div class=”globalContainer”> <div> … </div> </div> Resolution : You can write the following query in the browser console. $x(//div[@class=”globalContainer”]) Further Reading xPath locator Practical Examples

0

Selenium and xpath – locate an element using id attribute

Issue : Locate the following element using its ID. <div id=”globalContainer”> <div> … </div> </div> Resolution : You can write the following query in the browser console. $x(//div[@id=”globalContainer”]) Further Reading xPath locator Practical Examples

0

How to check whether your ubuntu is 64 bit

I recently started playing with docker and their prerequisite states that your ubuntu must be 64 bits. Here’s the command that helps you find the number of bits for your ubuntu uname -a On...