# Access element by html class or title in scripting

**URL:** <https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 2, 2024, 1:56pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683 "2024-07-02T13:56:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 2, 2024, 1:56pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/1 "2024-07-02T13:56:33Z")

</div>

I want to simulate a click on the + range when I scroll up and on - when I scroll down on the Equipment Schedule. I know how to detect the scrolling part, but I don't know how to virtually click the icons.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/c/3c09ec937bcb3d3ea15d1e69705bf7c738230c18.png)

This is the html:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bb1988da740a546abaacb9d7abb6f5f2dcf3f874.png)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 2, 2024, 1:59pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/2 "2024-07-02T13:59:38Z")

</div>

Why do you want to simulate a click ?  
Just increment/decrement the values, you don't need to go through simulating a click to do that.

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 2, 2024, 2:04pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/3 "2024-07-02T14:04:19Z")

</div>

Correct me if I'm wrong but the only option I see to change that is defaultZoom and changing it doesn't change the views zoom, only the default one.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 2, 2024, 2:07pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/4 "2024-07-02T14:07:46Z")

</div>

What are those buttons ? Is that a built-in component ?

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 2, 2024, 3:11pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/5 "2024-07-02T15:11:11Z")

</div>

Yes, it's a EquipmentSchedule component.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 2, 2024, 4:53pm UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/6 "2024-07-02T16:53:26Z")

</div>

You will not have native access to the routine run by those buttons as IA has not provided an extension function or property to do so.

That said, you could potentially add some JS injection to "click" on the button, but personally I wouldn't feel it was worth the effort.

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [July 3, 2024, 6:21am UTC](https://forum.inductiveautomation.com/t/access-element-by-html-class-or-title-in-scripting/92683/7 "2024-07-03T06:21:22Z")

</div>

Alright, I'll wait for the property to come then... Thanks for the info!
