# Inject JavaScript Step!

**URL:** <https://community.automationedge.com/t/inject-javascript-step/2387>\
**Category:** Self-Help & Learn\
**Tags:** rpa, article\
**Created:** [July 21, 2020, 1:29pm UTC](https://community.automationedge.com/t/inject-javascript-step/2387 "2020-07-21T13:29:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aesupport](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/aesupport/32/371_2.png) [@aesupport](https://community.automationedge.com/u/aesupport)\
**Post date:** [July 21, 2020, 1:29pm UTC](https://community.automationedge.com/t/inject-javascript-step/2387/1 "2020-07-21T13:29:43Z")

</div>

**Problem:**

> **How to get alert value from Inject JavaScript Step.**

> **How to use Inject JavaScript Step.**

  

**Solution:**

Here, we extracted _src_ property from _img_ tag using CSS Selector.

 ![Inject JS](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/9304037b011d1ee5c5b6c3cb970ee109fd20dbad.jpeg)

  

Where, _path_ contains dynamic CSS Selector for each image, created according to the logic required.

After this use **Web Composite** Step to Accept Alert and Get Value.

 ![Web Composite](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/ead9a0caeb28731d225428d31d6d0565834576d0.jpeg)

Value from Alert stored in new output field, here _pathsrc_.

Enjoy the automation with ☞ **AutomationEdge!!**
