Handling stale element reference exception in cuke smoke