python - Selenium PhantomJS throws EelementNotVisible while Firefox is completely fine during combo box selection -


so have website has combo need select item from, problem it's bit untraditional , doesn't have option's elements instead has divs.

so need program click combo box wait (the best way found via implicitly_wait(3)# 3 seconds) , click box element need. firefox doing great job phantomjs seem throw:

selenium.common.exceptions.elementnotvisibleexception:  message: 'error message => \'element not visible , may not manipulated\' 

i'm not sure what's cause of it, suspect phantomjs fails correctly wait via implicitly_wait reason , tries select non-visible element.

any idea how approach without forced thread sleep?

yup, issue sounds i've fixed in ui test starting anoy me. quite complex one, passed on browsers, except favorite phantomjs (which fastest).

it quite anoying, when in debugger see parent element set visible. prime faces component needed click whatever reason (not css or active styles) not visible.

after looking @ phantom js screenshot, realized window quite tiny, , indeed ui element not visually visible.

you see geting at?

phantom js headless browser, not render window, use window, , window have size. exception quite unexpected, because engine behind same 1 used chrome , safari ... things should work.

well, , did in end. try tune driver factory this:

 webdriver driver = new phantomjsdriver();                   driver.manage().window().setsize(new dimension(800, 600));             return driver; 

good luck.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -