Doubts - Capturing messages in the Selenium IDE

Asked

Viewed 252 times

0

I am building a Test in the Selenium IDE (Chrome extension) to fill out a form and capture the message it returns in case of an error. On the site, when an error occurs, the message I’d like to capture is returned within a modal-dialog.

<h4 id="msgBody">Não foram encontradas contas habilitadas para pagamento. Tente pelo NIS.</h4>

The sequence built on the Selenium IDE is: Sequência deo Selenium

I noticed that there is an option for Assert Alert, but it cannot capture the one contained in the modal dialog.

Comments: If you have doubts about the behavior of the system, it is available at:

https://fgts.caixa.gov.br/h6ul5o1obypimnfe1a05n59hyxwm8n2gkmrf2ju47bcjohnfiebx9a4xyqax/pages/inter/home.html

Data generated for testing:

CPF: 969.107.591-17 Date of Birth: 23/03/1956

1 answer

0

Guy tries to use the following xpath:

//div[@id="modalMsg"]//div[@class="modal-body"]//h4

He’s finding the message you want to pull.

if you don’t know how to use xpath in Selenium IDE here’s an example: Example of using xPath

Browser other questions tagged

You are not signed in. Login or sign up in order to post.