Unwanted Extra Blank Lines when Giving Value to Text Boxes

  • Автор темы Автор темы Cyrix
  • Дата начала Дата начала

Cyrix

Client
Регистрация
16.12.2011
Сообщения
401
Реакции
12
Баллы
18
I want to read a text file and put its value into an input text box on a webpage (such as Youtube's title or description input fields when uploading a video).

So I first read the text file into a variable, then an action will put the value of the variable into the text boxes.
However, there are always an extra blank line generated for each line of text in the text file.

For example, if the text file contains
AAA
BBB

then the resulting text box will become
AAA

BBB

Another example, if the text file contains
AAA

BBB

then the text box will become
AAA



BBB


How can we solve this problem?
Thanks.
 
Последнее редактирование:
For every Enter in the text file, ZP enters twice.

The text file is attached. ZP version is 5.35.

Thanks.
 

Вложения

Последнее редактирование:
Enable this option. Or disable if it's enabled.
Check_data_matching.png
 
  • Спасибо
Реакции: Cyrix
Enable this option. Or disable if it's enabled.

This option does not solve the problem.
It's the same whether it's on or off.

And very strangely, PM doesn't have this issue, but ZP does.

You can try it yourself. It's the description field for uploading Youtube videos.
VquDNFCwQnuNoXgREtPxng.png


The actions are attached here as well.
 

Вложения

This option does not solve the problem.
It's the same whether it's on or off.

And very strangely, PM doesn't have this issue, but ZP does.

You can try it yourself. It's the description field for uploading Youtube videos.
VquDNFCwQnuNoXgREtPxng.png


The actions are attached here as well.
This is exactly the issue with input data matching.
what browser engine do you use in your project? Would recommend you to switch to Chrome.
Chrome_engine.png
 
  • Спасибо
Реакции: Cyrix
I am using Chrome.
For now I use keyboard emulation with {ENTER} as a work around.
 
I am using Chrome.
For now I use keyboard emulation with {ENTER} as a work around.
Try to decrease Input Emulation level. Set it to Speed or DOM events emulation.

You can do it globally for whole project:
70214

Or only for specific Action:
70216

Worked for me on 5.47 (both PM and ZP)
 
  • Спасибо
Реакции: Cyrix

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)