Frage

In my screen i have 2 text "FN1394538779762 LN1394538779762" and i need to check this text using single xpath.

K1394538779762 L1394538779762

I tried something like below, but that doesn't work. Can you help me how to do that?

Common.assertTextOnPage(driver, "K" + uniqueID "L" + uniqueID);
War es hilfreich?

Lösung

Try:

Common.assertTextOnPage(driver, "K" + uniqueID + " L" + uniqueID);

Instead of:

Common.assertTextOnPage(driver, "K" + uniqueID "L" + uniqueID);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top