I am doing some testing in Selenium using the selenium maven plugin and HTML selenese scripts. Everything works pretty well except for this scenario I have: I am clicking on a submit button and it takes me to a redirect url. The server for that URL is not running but the web service that redirect the URL create a code query parameter and add it to the redirect URL. I want to be able to click submit and use storeLocation selenese command to extract the redirect url and extract that code parameter. When I use clickAndWait, the redirect happens but the test fails because the page tries to load and eventually the maven build. When I use just click command, the test passes, but the page doesn t load and storeLocation doesn t contain the value of the redirect url I need with the code parameter. Anyone know how to get selenium to click and wait but IGNORE the fact that the page will not load? I think it needs to involve some javascript and maybe the use of waitForCondition command but I can t find any example of it being done. basically, the redirect URL has no server running it, but my service create a token param that I need to extract from and pass it to another test case
My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to ...