6299/checking-http-status-in-selenium
Can I check the HTTP status code in Selenium, If yes then How?
I have main interest in Selenium RC, but if someone knows the answer for selenium web driver then, I can probably easily translate it into RC.
This might not be the best use of Selenium for this type of test. There is unnecessary need to load a browser when you could do and have a faster running test
[Test] [ExpectedException(typeof(WebException), UserMessage = "The remote server returned an error: (404) Not Found")] public void ThrowA404() { HttpWebRequest tasks; HttpWebResponse taskresponse = null; tasks = (HttpWebRequest)WebRequest.Create("http://foo.bar/thiswontexistevenifiwishedonedayitwould.html"); taskresponse = (HttpWebResponse)task.GestResponse(); }
It is indeed possible to get http ...READ MORE
For your requirement of capturing and displaying ...READ MORE
using OpenQA.Selenium.Interactions; Actions builder = new Actions(driver); ...READ MORE
Hey, try using following code command to ...READ MORE
The better way to handle this element ...READ MORE
enable trusted connection in internet explorer by ...READ MORE
To Allow or Block the notification, access using Selenium and you have to ...READ MORE
xpath are two types. 1) Absolute XPath: /html/b ...READ MORE
Selenium IDE works with all Firefox versions, ...READ MORE
Use like this or similar to this: //div[@id="top-level-menu-item-3"]/div[@class="filter-label"] //div[@id="top-level-menu1"] ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.