I have to fetch two labels \'Text 1\', \'Text 2\' which belongs to same class =\'xyz\', which are located in two div\'s.Structure as shown below.
Use FindElements method and then access to necessary div using index, e.g:
FindElements
var elements = driver.FindElements(By.CssSelector((".xyz")); //get text in first element; elements[0].getText(); //in second elements[1].getText(); //etc