Convert Event Click to Javascript Expression

Discussion in 'Questions' started by shThs, Jun 12, 2019.

  1. shThs

    shThs Новичок

    Joined:
    Oct 3, 2018
    Messages:
    23
    Likes Received:
    0
    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.
     

    Attached Files:

  2. VladZen

    VladZen Administrator Staff Member

    Joined:
    Nov 5, 2014
    Messages:
    14,299
    Likes Received:
    3,479
    Unfortunately, it is not possible to convert action blocks to Javascript.
    Why do you need to convert it to code?
     
  3. shThs

    shThs Новичок

    Joined:
    Oct 3, 2018
    Messages:
    23
    Likes Received:
    0
    It is so that I have the option to run the scheme in any emulator outside of ZP.
     
  4. VladZen

    VladZen Administrator Staff Member

    Joined:
    Nov 5, 2014
    Messages:
    14,299
    Likes Received:
    3,479
    It's only possible to convert to C# via context menu (right click on action block of click event)
     
  5. shThs

    shThs Новичок

    Joined:
    Oct 3, 2018
    Messages:
    23
    Likes Received:
    0
    Ok, thanks.
     

Пользователи просматривающие тему (Пользователей: 0, Гостей: 0)