Unwanted Extra Blank Lines when Giving Value to Text Boxes

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
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.
 
Последнее редактирование:

nicanil

Client
Регистрация
06.03.2016
Сообщения
2 242
Благодарностей
1 820
Баллы
113
Hello.
Can you provide example of text file?

Also, which ZennoPoster version are you using?
 
  • Спасибо
Реакции: Cyrix

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
For every Enter in the text file, ZP enters twice.

The text file is attached. ZP version is 5.35.

Thanks.
 

Вложения

Последнее редактирование:

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
Enable this option. Or disable if it's enabled.
Check_data_matching.png
 
  • Спасибо
Реакции: Cyrix

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
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.


The actions are attached here as well.
 

Вложения

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
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.


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

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
I am using Chrome.
For now I use keyboard emulation with {ENTER} as a work around.
 

nicanil

Client
Регистрация
06.03.2016
Сообщения
2 242
Благодарностей
1 820
Баллы
113
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

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 913
Баллы
113
  • Спасибо
Реакции: Cyrix

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
You can say I'm annoying, but I still insist this is check input data issue.
Did you restart zennoposter after enabling/disabling this option?
OK, let me try it again.
The behavior is not consistent between PM and ZP so I need to switch between the scenarios in PM/ZP to test.
Thanks.
 

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