Convert Event Click to Javascript Expression

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

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.
 

Вложения

  • Event code.jpg
    Event code.jpg
    43,2 KB · Просмотры: 329
Unfortunately, it is not possible to convert action blocks to Javascript.
Why do you need to convert it to code?
 
It is so that I have the option to run the scheme in any emulator outside of ZP.
 
It's only possible to convert to C# via context menu (right click on action block of click event)
 
Ok, thanks.
 

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