Tuesday, 15 July 2014

Python - 1


What s dictionary ? 

  • It associates keys to values. 
  • Each key must have a value.
  •  Dictionary is mutable 

  • Each key seperated by (:)
  • The values of a dictionary can be of any type, but the keys must be of an immutable data type such as strings, numbers, or tuples

  • We can update , add, delete 




dict() -> new empty dictionary













Friday, 11 July 2014

Selenium Webdriver IE Problem

 I was working on crossbrowser


Problem : 
The error displayed is I/O exception (java.net.SocketException) caught when processing request: Software caused connection abort: recv failed Jan 24, 2014 3:44:04 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute INFO: Retrying request Exception in thread "main" org.openqa.selenium.NoSuchElementException

Solution : 


The problem was resolved when the security settings in IE was changed to "Enable Protected Mode" for "Internet", "Local Intranet", "Trusted Sites" and "Restricted Sites". You can change it by going to Internet Options security tab and enable check box "Enable Protected Mode" for all the zones.