Write content between <br> in Selenium IDE

Asked

Viewed 111 times

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’d like to record what’s between the
and write to a variable

You could do that ?

I would like something more or - like:

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

To class="OSInline" is present in various parts of the screen so I think we can not use it for this case

  • the code is: <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>

  • did not understand the charge of recording something on the page with the selemiun. Can you explain me ? Thank you.

1 answer

0

found on the internet the possible solution

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

I save my text in a variable and then use this command in javascript...but when I use it...

someone can help me ??

I’d like to strip the line break

Example:

Hello World

And put it like this: Hello World

Can someone please help me ?

Browser other questions tagged

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