Saturday 12 November 2016

Maven installation and set path on Windows OS

Prerequisite:
Set path for Java, click below link for installing and set path for java on windows
https://automation-home.blogspot.in/2016/08/java-8-installation-and-path-setting.html

Follow below steps for installing and set path for maven 
Download maven from https://maven.apache.org/download.cgi

Click link 'apache-maven-3.3.9-bin.zip'.

Click 'OK' button to save the zip file.

zip file is downloaded.

Consider maven zip file is extracted at 'C:\Program Files\apache-maven-3.3.9-bin\apache-maven-3.3.9

 Open advanced system settings
Above screenshot is captured from Windows 8
Mouse right click on the start button and select 'System'.

 Click 'Advanced system settings'.

Select 'Advanced' tab and click on 'Environment Variables' button.

Add environment variable for maven.
Click 'New' button.


Add 'M2_HOME' or 'MAVEN_HOME' variables.
 Consider maven zip file is extracted at 'C:\Program Files\apache-maven-3.3.9-bin\apache-maven-3.3.9'
According to Maven documentation required only adding 'M2_HOME', but some programs still reference Maven folder with MAVEN_HOME, so it’s safer and better to add both.

Edit Path and add '%M2_HOME%\bin' to Path.

 Verify maven configuration by running the command 'mvn –version' in the command prompt.
 Mouse right click on the start button and select 'Command Prompt'.

Run the command 'mvn –version' in the command prompt.
   

Wednesday 2 November 2016

Firebug for chrome

Earlier firebug plugin supports only firefox browser, firebug doesn't support chrome browser.
Now there is 'Firebug Lite' Extension for Chrome browser, using this extension you can inspect the elements in chrome browser.
Firebug Lite for chrome browser is not a substitute for Firebug or Developer tools.

Access the below url in chrome browser

Click button 'Install Firebug Lite' button.

Page is navigated to Chrome Extenstions page

Click 'ADD TO CHROME' button.

Click 'Add Extension' button.

Firebug icon is displayed on top right corner of the chrome browser


Click on Firebug icon to open the firebug.
   Firebug is opened

Click 'Inspect', move the mouse to the element to which you want to inspect, corresponding html element/elements are displayed(i.e. highlighted) in the firebug.

OR

Place the mouse pointer on the element(ex: Google Search button) and right click, from context menu select 'Inspect with Firebug Lite'.

Selected html element is displayed(i.e. highlighted) in the firebug.