PM won't save custom user agent

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
In the latest PM, I have a list of user agents that put to reassign field (user agent). When I set the list variable in, save it, then reopen, the value (variable) is blank.

Video of issue here.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Код:
project.Profile.UserAgent = "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0";
Код:
project.Profile.UserAgent = project.Variables["yourvar"].Value;
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Код:
project.Profile.UserAgent = project.Variables["yourvar"].Value;
Thank you, this works a treat!
 

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