java - Element not exists, takes alot of time to Execute next line of code -


i'm ravi ,

working automation engineer using selenium, have found 1 problem selenium, if element not exists in html page or dom take lot of time find element more 5 min after 5 mins executes next line of code want if element not exists in page go next line of code takes more time.in cases element exists in page did if element exist come code otherwise go else code have lot of cases these takes lot of take execute complete code,

i tried possible ways list ,try , catch unable reduce time,can please give solution in selenium.

please give solution above problem.

thanks,

ravikiran.

when create driver define implicit wait

webdriver driver = new chromedriver(); driver.manage().timeouts().implicitlywait(5, timeunit.seconds); 

this try locate elements 5 seconds, can change whatever suits you.


Comments

  1. Casino: How to withdraw winnings in 2021 - DrmCD
    There 부산광역 출장마사지 are two ways 고양 출장안마 you can earn 당진 출장마사지 money for Casino: 보령 출장샵 1) Deposit and receive a bonus of up to $1000.2. You are able to play 김제 출장마사지 real money games in casinos online

    ReplyDelete

Post a Comment

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -