Reputation
500
Top tag
Next privilege 750 Rep.
See votes, expandable usercard
Badges
5 9 19
Impact
~152k people reached

  • 0 posts edited
  • 0 helpful flags
  • 15 votes cast
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
It does. Right now I'm trying to figure out how to use a CSS selector plus the WebDriver wait function to check if it's visible.
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
So I think what's happening is that WebDriver is finding the element, but when it finds it, it's still set to CSS display:none (or whatever). I need some way to check for CSS visibility without my wait function...
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
I take it back. It is some kind of timeout issue. I did a quick and dirty sleep function in the Python, and now it's clickable. time.sleep(5) elem = self.web.find_element_by_id('tos_agree') elem.click()
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
After more thought, I think it's not a timeout issue at all but a visibility issue. This might be the solution: stackoverflow.com/questions/6101461/…
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
I think you guys are spot on with the JavaScript wait idea. Indeed this page is hiding elements via a JavaScript trigger. Unfortunately, I tried the wait function this morning and it still gives the not visible error: driver = self.web elem = WebDriverWait(self.web, 2).until(lambda driver : \ driver.find_element_by_id('tos_agree')) elem.click()
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
I'm using 2.8.1 I believe. I easy-installed it for Python a couple weeks ago or so.
Nov
1
asked Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
Oct
27
asked Getting nose test runner to execute a test against multiple browsers / configurations?
Oct
24
comment WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?
I have just started learning WebDriver recently, so I'm not sure how to do that. All I see is how to get the currently focused element (switch_to_active_element), not how to set focus.
Oct
21
asked WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?
Oct
20
answered What's the difference between “testing” and “quality assurance”?
Oct
20
comment How do I start the Internet Explorer WebDriver for Selenium in Python?
Fair enough. Yeah, I understand the need for such things. Some barrier to entry is always good for websites. Just frustrating when you are a "power user" and already know how things work. ;-)
Oct
19
comment How do I start the Internet Explorer WebDriver for Selenium in Python?
I tried to post this as an answer, but I need 100 reputation points. That is a stupid requirement.
Oct
19
comment How do I start the Internet Explorer WebDriver for Selenium in Python?
So no one else has to go through this hassle, this is how you do it: # Create a new instance of the Internet Explorer driver browser = webdriver.Ie() You'll also want to do this "Protected Mode must be set to the same value (enabled or disabled) for all zones" in IE's security settings if your on Vista or Windows 7.
Oct
19
asked How do I start the Internet Explorer WebDriver for Selenium in Python?
Oct
19
asked Pretty / GUI formatting for the nosetests.xml xUnit report?
Oct
19
comment Selenium: reuse existing browser session, instead of opening new windows?
Funny, I was just reading about this this morning, and I think it will solve my browser windows problem. Thank you.
Oct
19
accepted Selenium: reuse existing browser session, instead of opening new windows?
Oct
18
revised Selenium: reuse existing browser session, instead of opening new windows?
edited tags
Oct
18
asked Selenium: reuse existing browser session, instead of opening new windows?