make url attributes behave like selenium