|
From: Culley H. <cu...@fa...> - 2004-03-10 20:35:33
|
On Mar 10, 2004, at 11:47 AM, Marcus Baker wrote: > Hi... > > Culley Harrelson wrote: >> And this is failing. > > Try doing a $this->showSource() just after the submit. It is possible > some other error has occoured. Otherwise I can only progress this with > an isolated test of some kind. Is there anything special about the > submit? If memory serves you can do this... > Show source after submit does nothing. Before submit, it does show the source. > $this->assertTrue($this->clickSubmit); > This fails. > ...just to confirm success. Are you redirecting after the submit? > Yes I am redirecting. I could just test the redirected page. in a separate get... >> Pattern [/should exist on next page after button is clicked/] not >> detected in [Boolean: false] > > False implies no content at all from the page. can you place the two > pages on the web so taht I can try it from my end? > Unfortunately I can't. It is normally password protected and it is using a bunch of libraries that haven't made it into production yet. I will keep working on this-- I am sure it is something strange in my setup. One possible problem is there is an onclick even for the submit button: <input name="save_changes" onclick="save_changes.disabled=true;" type="submit" value="Next"> This form was created with the phphtmllib form objects and this is added automatically. It doesn't seem like this should cause a problem but maybe it does? I haven't figured out how to disable this and haven't had the time to build a test that doesn't include it. culley |