fix for xpath, uses ClassName and Instance instead of Index
Merge pull request #3271 from Jonahss/instance

fix for xpath, uses ClassName and Instance instead of Index