lundi 18 novembre 2019

Difficulty asserting element text

I have difficulty asserting a message displayed on a given element. The message displayed on the device is separated into two lines. To this end, I added the "assertEquals" command. However, after executing the script, error in comparing assert is displayed. When checking the comparison error, no error is displayed. The message of expectation is the same as that obtained.

Could you help me?

Assert.assertEquals("Hello\r\n" + "this is your boarding!", boasVindasPaginaDois.obterTexto());

The message is the same as displayed at the moment and in the expectations.

The test is on Mobile, using JAVA in APPIUM.

I am waiting and thanks in advance!!!

Aucun commentaire:

Enregistrer un commentaire