Convert Event Click to Javascript Expression

shThs

Пользователь
Регистрация
03.10.2018
Сообщения
117
Благодарностей
3
Баллы
18
Is it possible to convert the Event clicks from ZP to a javascript expression?

I attached a screenshot of a sample event that performs a click on a CLASS Attribute. I am not able to create a working javascript command that would do the same thing as this event action.

So far, I am using this expression document.getElementsbyClassName('value').click();"), but it is not executing the click. I only seem to have success with expressions that looks for an ID Attribute. I can't seem to do a click on a Class Attribute.
 

Вложения

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 189
Благодарностей
5 831
Баллы
113
Unfortunately, it is not possible to convert action blocks to Javascript.
Why do you need to convert it to code?
 

shThs

Пользователь
Регистрация
03.10.2018
Сообщения
117
Благодарностей
3
Баллы
18
It is so that I have the option to run the scheme in any emulator outside of ZP.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 189
Благодарностей
5 831
Баллы
113
It's only possible to convert to C# via context menu (right click on action block of click event)
 

shThs

Пользователь
Регистрация
03.10.2018
Сообщения
117
Благодарностей
3
Баллы
18
Ok, thanks.
 

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