Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-10-21 02:30 AM
Hi, how to return a value from browser console into data item? In object, I tried "Insert Javascript Fragment" but tab "Output" is disabled for me.
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-21 07:00 AM
Hi Tomas,
What I did previously was to inject a Javascript function using the "Insert Javascript Fragment" action and subsequently used "Invoke Javascript Function" action to execute the same function. The JS function should create an element on the web page, preferrably hidden, and then store the value against the element. Once done, spy the hidden element, and then you will be able to use a simple Read stage to get the value from the element.
I have not tried anything simplier than this, but this does not mean it is not possible. Hope this helps.
What I did previously was to inject a Javascript function using the "Insert Javascript Fragment" action and subsequently used "Invoke Javascript Function" action to execute the same function. The JS function should create an element on the web page, preferrably hidden, and then store the value against the element. Once done, spy the hidden element, and then you will be able to use a simple Read stage to get the value from the element.
I have not tried anything simplier than this, but this does not mean it is not possible. Hope this helps.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-21 07:00 AM
Hi Tomas,
What I did previously was to inject a Javascript function using the "Insert Javascript Fragment" action and subsequently used "Invoke Javascript Function" action to execute the same function. The JS function should create an element on the web page, preferrably hidden, and then store the value against the element. Once done, spy the hidden element, and then you will be able to use a simple Read stage to get the value from the element.
I have not tried anything simplier than this, but this does not mean it is not possible. Hope this helps.
What I did previously was to inject a Javascript function using the "Insert Javascript Fragment" action and subsequently used "Invoke Javascript Function" action to execute the same function. The JS function should create an element on the web page, preferrably hidden, and then store the value against the element. Once done, spy the hidden element, and then you will be able to use a simple Read stage to get the value from the element.
I have not tried anything simplier than this, but this does not mean it is not possible. Hope this helps.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-10-21 06:57 AM
@TomasKochan2 This should help .
------------------------------
Vipul Tiwari
Senior Process Simplification Developer
Amazon
------------------------------
