screen shoot of the chrome browser using Selenium2 in java -


i trying take screen shoot of chrome browser using selenium2 in java.here code , error getting

try {     driverc = new chromedriver();     driverc.get(add);     file scrfile1 = ((takesscreenshot) driverc)                         .getscreenshotas(outputtype.file);     fileutils.copyfile(scrfile1,         new file(imagepath + "\\" +"chrome_"+fontid+".png")     );     driverc.close(); } catch(exception ex) {     system.out.println(ex.getmessage()+ ex.getstacktrace()); } 

error message:

java.net.bindexception: address in use: jvm_bind system info: os.name: 'windows xp', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_16' driver info: driver.version: chrome[ljava.lang.stacktraceelement;@e80842 

google chrome version : google chrome -->7.0.517.44 os : windows xp.

how can resolved. regards singh s.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -