645 reputation
56
bio website
location
age 27
visits member for 3 years, 2 months
seen Jun 10 at 14:24

Jun
30
answered WebDriver login and click action ain't working…
Jun
30
comment switching windows with Selenium2 and c# where popup window has same title as originating window
Back before Selenium 2 could deal with alerts we used to have to call self.driver.execute_script('window.onbeforeunload = function(){};') (sorry its python bindings) in order to prevent the alert from showing up when we were trying to change pages without saving. Its a simple example, but I feel you will be able to do something similar
Jun
30
comment switching windows with Selenium2 and c# where popup window has same title as originating window
Sure, for a basic overview there is some at Selenium FAQ and for a more in-depth explanation you can use JavascriptExectutor API.
Jun
29
answered switching windows with Selenium2 and c# where popup window has same title as originating window
May
10
comment Attach to browser not spawned by Selenium2
IE uses a dll and chrome uses a zip file.
May
10
awarded  Beta
May
10
comment Attach to browser not spawned by Selenium2
I do not think you can attach to a browser not spawned by the driver. Tarun's solution will only allow switching to and from browsers spawned by that particular driver
May
9
comment Maintaining automation framework for different browsers like IE and FF
In my experience if it works in IE it will work in firefox. As such, in order to not have two sets of commands (one for firefox and on for IE), I try to convert to using DOM values consistently. On a side note, xpath is really difficult to use and not have to update for simple changes anyway. Hope that helps, if not let me know.
May
9
answered Maintaining automation framework for different browsers like IE and FF
May
9
answered Attach to browser not spawned by Selenium2
May
6
answered Capturing screen shots in selenium tests
May
6
comment Which locator do you use with Selenium CSS or XPath?
I agree with @CBA whole completely. We had originally used xpath for all of our selectors, and it quickly became apparent that using the class_name or id was the only way to write the tests in such a way that they would not need to be fixed for any small change to the html
May
6
answered Handling self-refreshing pages from selenium
May
5
awarded  Editor
May
5
revised Should end-to-end tests be self-contained?
deleted 2 characters in body
May
5
answered What are the advantages of automated user acceptance tests?
May
5
awarded  Teacher
May
5
answered Should end-to-end tests be self-contained?
May
4
answered How do you wait for jQuery Ajax calls to complete in Selenium 2
May
3
comment Building “slow to break” regression tests
PageObjects are pretty much your best bet. Just make it easy to change how you are getting or defining an element. We have a dictionary for each page that pairs a key with a tuple. The tuple consists of how we want to select the element (id, xpath, class_name), and then the actual selector needed to achieve that. The hardest part is defining elements in such a way that little changes will not force a re-write. The worst thing you can reference things by is xpath.