new selenium
fixing open code to work in both latest safari and IE