Watir Element exists but not present, but is visible in screenshot -


for reason watir saying footer of page not visible.

i have tests setup take screenshots, , can see footer on screenshot of page.

i take screenshot doing:

@browser.driver.save_screenshot(output + "/" + screenshot) 

testing lines in code:

puts "waiting bottom sticker" watir::wait.until { @browser.div(:id => "bottom-sticker").exists? } puts "bottom sticker found" puts "bottom sticker exists: " + @browser.div(:id => "bottom-sticker").exists?.to_s puts "bottom sticker present: " + @browser.div(:id => "bottom-sticker").present?.to_s puts "bottom sticker visible: " + @browser.div(:id => "bottom-sticker").visible?.to_s 

test log:

  waiting bottom sticker   bottom sticker found   bottom sticker exists: true   bottom sticker present: false   bottom sticker visible: false 

watir reporting other elements in page visible , present. bottom-sticker div child of body not being hidden parent.

any ideas?

i found issue not due watir, instead originated selenium. found link selenium docs. did have overflow:hidden styling on div , removing made contents available in watir.

there must issue in selenium content wasn't overflowing, , visible in screenshots taken using selenium browser.


Popular posts from this blog