Write content between br in the Selenium IDE

0

I have the following 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 would like to write what is between the
and write to a variable

Would you do it?

I'd like you to get something + or - like this:

  

Henrique Lavoie Júnior Square, 701 Irajá - Rio de Janeiro - RJ - 21231-200

The class="OSInline" is present in several parts of the screen so I do not think you can use it for this case

    
asked by anonymous 04.09.2015 / 14:14

1 answer

0

I found on the internet the possible solution

javascript {storedVars.labelValue = storedVars.labelValue.replace (/ \ r \ n | \ n | \ r) / gm, "")}

I keep my text in a variable and then use this command in javascript ... but when I use it ... it turns yellow in my selenium IDE and nothing happens

Anyone can help me?

I'd like to strip the line break

Example:

Hello World

And put it like this: Hello World

Can anyone help me please?

    
09.09.2015 / 14:41