475 reputation
3819
bio website
location Portland, OR
age
visits member for 2 years, 11 months
seen May 22 at 22:21

Dec
28
asked Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?
Dec
2
comment How to download a file using Selenium's WebDriver?
Thanks. I might try to do it with the Python requests module.
Dec
2
accepted How to download a file using Selenium's WebDriver?
Dec
2
asked How to download a file using Selenium's WebDriver?
Dec
2
comment WebDriver function failing intermittently in Internet Explorer near clear() method
No, there's no JavaScript at all, and it fails in other places too. It's just WebDriver being flaky with IE.
Nov
30
comment WebDriver function failing intermittently in Internet Explorer near clear() method
No, it still fails intermittently even with the detection I put in place. Particularly Internet Explorer. WebDriver's not great about waiting for the complete page to load sometimes.
Nov
25
comment WebDriver function failing intermittently in Internet Explorer near clear() method
Got an error message: WebDriverException: Message: 'Message: u\'Element must not be hidden, disabled or read-only\'. So I am going to try putting in a check for enabled/visible just before the .clear()
Nov
24
asked WebDriver function failing intermittently in Internet Explorer near clear() method
Nov
24
comment WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?
That might work, although the WebDriver people recommend against it here: code.google.com/p/selenium/wiki/…?
Nov
22
comment WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?
.click() fails on the element. Firefox and IE can use ii. It's a bug in ChromeDriver.exe code.google.com/p/selenium/issues/detail?id=2328
Nov
11
answered When is it OK not to have dedicated testers/QA team?
Nov
10
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
It definitely would be faster than doing a webdriver wait, and I think you could import less too. But adds potential breakage if the developer ever decides to rename the function/etc.
Nov
9
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
Cool idea, but I'm reluctant to do that, because I think one of the big benefits of WebDriver is that it drops the JS-injection that RC Server was doing. Seems like we get better cross-browser support that way.
Nov
7
comment Getting nose test runner to execute a test against multiple browsers / configurations?
What I ended up going was making a setup.cfg that my imported module reads from. It has a line to specify the browser. What I can do then is run nosetests each time after I changed the browser (the .cfg could be changed at the end of the tests in an autoamated fashion, of course). This doesn't really solve the problem, but it's at least more elegant than writing three test functions for each test, or doing something weird like copying the test folder three times.
Nov
1
accepted Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
Finally got it using Jason's suggested method. Jason, can you please edit your answer to include this example code so it's not buried in comments? You'll need to format it too. elem = self.web.find_element_by_id('tos_agree') driver = self.web elem_visible = WebDriverWait(self.web, 2).until(lambda driver : \ elem.is_displayed()) elem.click()
Nov
1
comment Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException
Okay, I think I got it working via elem = self.web.find_element_by_css_selector("div[class='promo_accepted'][style='displa‌​y: none;']"). However, Jason's solution sounds much cleaner / natively supported by WebDriver, so I'm going to try that now.
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()