| bio | website | |
|---|---|---|
| location | Heverlee, Belgium | |
| age | 39 | |
| visits | member for | 7 months |
| seen | Oct 17 '12 at 8:05 | |
| stats | profile views | 0 |
Make everything as simple as possible..
(but not simpler!)
Albert Einstein
The irrationality of a thing is no argument against its existence, rather a condition of it.
Friedrich Nietzsche
|
Oct 3 |
comment |
Selenium testing using checksums of html Sam, indeed, I start out with a working html file and then extract the hashtag with selenium too. I use the browserspecific webdriver to do so. eg : driver.clickbutton1(); dictionary.add(getHtmlFrom(driver)); driver.clickbutton3(); dictionary.add(getHtmlFrom(driver)); writeToFile(dictionary). The driver is either firefox or IE. Other drivers are of no importance to us. |
|
Oct 2 |
comment |
Selenium testing using checksums of html I updated my question with a code fragment that shows how I read the dynamic html. (in comment code is less readable) |
|
Oct 2 |
comment |
Selenium testing using checksums of html As far as dynamic ids and other dynamic go : indeed, that's right. I even had to deal with them, but so far I could easily change dynamic ids with deterministic ones (that's always a better approach if possible imo), and in the worst case I can leave dynamic parts out of the comparison string. I forget to react on extarnal resources : they too are compared as long as they change the DOM (css, javascript,...). Of course I cannot notice if an image is replaced... |
|
Oct 2 |
comment |
Selenium testing using checksums of html +1 and thanks a lot for the extended answer,... but I think you are overlooking the fact that I get the html string in memory not the one in the initial repsone . That way hidden fields (display=none for example), dynamic behaviour and even browser dependencies are taken in account. The checksums are made and tested by driver.firefox, driver.IE and driver.Chrome for example... The whole purpose of my testing is testing dynamic behaviour and does that perfectly fine. |