I'm using nodeJS, this is what I'm trying:

```js
for (let i = 1; i <= elSize; i++) {
  try {
    let DeviceName = await driver
      .findElement(By.xpath("//span[@class='a-size-medium a-color-base a-text-normal']['i']"))
      .getText();
    console.log(i + ". Device Name: " + DeviceName + "\n");
  } catch (e) {
    await driver.executeScript(
      ...
      catch statements...
    );
  }
}

```

trying to insert 'i' of for loop variable in xpath. Couldn't add a double quote, xpath becomes unidentifiable for eg this:

`driver.findElement(By.xpath("(//span[@class='a-size-medium a-color-base a-text-normal'])["+ i +"]")).getText();`

Does not get identified.

This is how the xpath is discoverable in browser:

`//span[@class='a-size-medium a-color-base a-text-normal']['i']`