Reputation
505
Top tag
Next privilege 750 Rep.
See votes, expandable usercard
Badges
6 9 19
Impact
~160k people reached

  • 0 posts edited
  • 0 helpful flags
  • 15 votes cast
Dec
28
comment Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?
That makes sense. I am going to do it that way. Our product supports searching via the URL. I will put example code in my question above. These comment boxes can't do multi-line code samples.
Dec
28
accepted Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?
Dec
28
revised Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?
added 192 characters in body
Dec
28
comment Less “hackish” way to do fast input (faster send_keys) in WebDriver besides JavaScript execution?
I'm inputing a large string into a textarea. I'll edit my question above with a code sample.
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()