Reputation: 11
I have this part of a code:
"<div> class="OSInline" style="width: 100%">
<span data-webbtests="CompraWeb.Request_Edit.AddressWB.expCompanyAdress">
Praça Henrique Lavoie Júnior, 701
<br>
Irajá - Rio de Janeiro - RJ - 21231-200
</span>
/div>"
I want to put into a variable the text between br tags like this:
Praça Henrique Lavoie Júnior, 701 Irajá - Rio de Janeiro - RJ - 21231-200
If I use storeText
I get this result:
Praça Henrique Lavoie Júnior, 701
Irajá - Rio de Janeiro - RJ - 21231-200
Can anybody help me ?
Upvotes: 1
Views: 602
Reputation: 1583
You can do that: Command: storeText Target: css=span Value: your_variable
when you print with echo command, you will see text without break. in my logs: [info] echo: Praça Henrique Lavoie Júnior, 701 Irajá - Rio de Janeiro - RJ - 21231-200
Upvotes: 2