I am using Selenium RC and I have a test case creating posts and checking in the frontend (public side) if the posts were created and how they are rendered.
But even if I log in at the beginning of the test case when I call the open command to go to wp-admin I am sent to the log in page.
Why is the open ignoring that I am already authenticated ?
My goal is to create a test suite with a log in test case at its beginning and a log out test case at its end.
Here is my broken test case :
<tr>
<td>open</td>
<td>wp-admin/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>user_login</td>
<td>admin</td>
</tr>
<tr>
<td>type</td>
<td>user_pass</td>
<td>pass</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>wp-submit</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>wp-admin</td>
<td></td>
</tr>
<tr>
<td>break</td>
<td></td>
<td></td>
</tr>
// ---> Login page instead of Dashboard
And it works with Selenium IDE.
java -jar "selenium-server.jar" -avoidProxy -userExtensions "user-extensions.js"
-trustAllSSLCertificates -proxyInjectionMode -log "log.log"
-Dhttp.proxyHost=proxy -Dhttp.proxyPort=80
-htmlSuite "*firefox" "http://localhost/wordpress/" "testSuite.html" "results.html"
Thank you