Monday 27 January 2014

latest version of Chrome driver exe file download

You can download from here


http://chromedriver.storage.googleapis.com/index.html?path=2.8/

unable to discover open pages selenium java error

For this error please updated your jar files with latest version of selenium .

By going here
http://docs.seleniumhq.org/download/

Next change your .exe Chrome driver file with latest version.

http://chromedriver.storage.googleapis.com/index.html?path=2.8/

Thursday 23 January 2014

Monday 6 January 2014

how to type or print euro symbol from keyboard

CTR + ALT +4


It will print € symbol.

received WebDriver request: POST /session

Solution:
Analysing


Console error :

"sessionId":"24d23535e36bc0db8111af6f04c69e01",
"status":0,
"value":{
"ELEMENT":"0.864296494284644:3"
}
}
[1012.521][INFO]: received WebDriver request: POST /session/24d23535e36bc0db8111af6f04c69e01/element/0.864296494284644:3/clear {
   "id": "0.864296494284644:3"
}
[1012.521][INFO]: waiting for pending navigations...
[1012.522][INFO]: done waiting for pending navigations
[1012.548][INFO]: waiting for pending navigations...
[1012.548][INFO]: done waiting for pending navigations
[1012.548][INFO]: sending WebDriver response: 200 {
   "sessionId": "24d23535e36bc0db8111af6f04c69e01",
   "status": 0,
   "value": null
}
[1013.552][INFO]: received WebDriver request: POST /session/24d23535e36bc0db8111af6f04c69e01/element {
   "using": "xpath",
   "value": "//input[@id='dwaafrm_singleshipping_lastName']"
}
[1013.552][INFO]: waiting for pending navigations...
[1013.552][INFO]: done waiting for pending navigations
[1013.570][INFO]: waiting for pending navigations...
[1013.570][INFO]: done waiting for pending navigations
[1013.570][INFO]: sending WebDriver response: 200 {
   "sessionId": "24d23535e36bc0db8111af6f04c69e01",
   "status": 0,
   "value": {
      "ELEMENT": "0.864296494284644:3"
   }
}

Time elapsed sec FAILURE! java.lang.reflect.InvocationTargetException: null

Solution:
Analysing

http://frankkieviet.blogspot.ca/2006/10/classloader-leaks-dreaded-permgen-space.html


Error looks as below
at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:307)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:404)
at org.openqa.selenium.By$ByXPath.findElement(By.java:344)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:299)
at com.MNSIntl.Utils.clickJS(Utils.java:325)
at com.MNSIntl.Keywords.menDress(Keywords.java:1132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.MNSIntl.Master_Driver.cardPaymentTest(Master_Driver.java:414)

Friday 3 January 2014

Could not resolve dependencies for project / Failed to execute goal on project

Solution :
Under .M2 folder(hint: click on start->search for .M2 it will show list of folders select .M2 folder)

Settings.xml file might be missing proxy settings or

Your proxy settings password expired

Just in case if you don't have any proxy details you can use this

<?xml version="1.0"?>
<settings>
 <proxies>
  <proxy>
   <active>true</active>
   <protocol>http</protocol>
   <host>proxyurl</host>
   <port>8080</port>
   <username>proxyusername</username>
   <password>password</password>
  </proxy>
 </proxies>
</settings>

Problem example:
Could not resolve dependencies for project ProjectName:ProjectName:jar:1.0: Failed to collect dependencies for [org.uncommons:reportng:jar:1.1.2 (test), javax.mail:mail:jar:1.4.3 (compile), net.sourceforge.jexcelapi:jxl:jar:2.6 (compile), org.seleniumhq.selenium:selenium-java:jar:2.38.0 (compile), log4j:log4j:jar:1.2.16 (compile), junit:junit:jar:4.8.1 (test), org.testng:testng:jar:6.3.1 (test), com.opera:operadriver:jar:1.2 (compile)]: Failed to read artifact descriptor for org.seleniumhq.selenium:selenium-java:jar:2.38.0: Could not transfer artifact org.seleniumhq.selenium:selenium-java:pom:2.38.0 from/to central (http://repo.maven.apache.org/maven2): java.lang.NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException