Pregunta

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);
¿Fue útil?

Solución

Try:

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

Instead of:

Common.assertTextOnPage(driver, "K" + uniqueID "L" + uniqueID);
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top