extracted driver find elements to separate def
Created case class instead of tuple and fixed compilation problem