Wednesday 24 September 2014

Easy to use editor to navigate from feature files to step definations for jvm Cucumber in eclipse

To navigate from feature files to step definitions easily .. you can use this Natural plug in.  
You can download this file from here

https://github.com/rlogiacco/Natural/wiki/Installation-Guide

Download Natural.zip file manually to your local machine

Open Eclipse 
Help-> Install New software

On available software click on Add button

Click on Archive button choose Nature.zip file and install .

Restart Eclipse 

If you are not sure how to archive file you can get help here
http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-127.htm


Now it will works.

Friday 19 September 2014

How to check whether css selector is correct or not in Chrome selenium inspect elements

How to check whether css selector is correct or not in Chrome selenium inspect elements


Open Chrome browser
Right Click on any element click Inspect elements as a result you will get development tool

Select Console Tool there


And after that


$$(" here give your css selector path ")

for xpath we can check like this
$x('//*[@id="header-container"]')

And click enter path should select .