can i click on a link that is not visible using webdriver -


my test case click on link of webpage. getting links , operation performed successfully, when try click on of them gives following exception

exception in thread "main" org.openqa.selenium.elementnotvisibleexception: element not visible   (session info: chrome=56.0.2924.87)   (driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=windows nt 6.3.9600 x86_64) (warning: server did not provide stacktrace information) command duration or timeout: 31 milliseconds build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800' system info: host: 'adminpc', ip: '192.168.1.79', os.name: 'windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121' driver info: org.openqa.selenium.chrome.chromedriver capabilities [{applicationcacheenabled=false, rotatable=false, mobileemulationenabled=false, networkconnectionenabled=false, chrome={chromedriverversion=2.28.455520 (cc17746adff54984afff480136733114c6b3704b), userdatadir=c:\users\admin\appdata\local\temp\scoped_dir1932_20343}, takesheapsnapshot=true, pageloadstrategy=normal, databaseenabled=false, handlesalerts=true, hastouchscreen=false, version=56.0.2924.87, platform=win8_1, browserconnectionenabled=false, nativeevents=true, acceptsslcerts=true, locationcontextenabled=true, webstorageenabled=true, browsername=chrome, takesscreenshot=true, javascriptenabled=true, cssselectorsenabled=true, unexpectedalertbehaviour=}] session id: f622cb046f2dcc4e7ddd5621497cb602     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source)     @ java.lang.reflect.constructor.newinstance(unknown source)     @ org.openqa.selenium.remote.errorhandler.createthrowable(errorhandler.java:216)     @ org.openqa.selenium.remote.errorhandler.throwifresponsefailed(errorhandler.java:168)     @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:638)     @ org.openqa.selenium.remote.remotewebelement.execute(remotewebelement.java:274)     @ org.openqa.selenium.remote.remotewebelement.click(remotewebelement.java:84)     @ newpackage.alllinks.main(alllinks.java:32) 

this error means link trying click not visible. try wait links displayed before clicking them.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -