Ask a Question

Set value to a Hidden Field

SOLVED
Karthik_K
New Contributor

Set value to a Hidden Field

How can I map a Hidden Field object and set it's value in a Keyword test? Below is how my hidden object look like. I did see a post that I can access hidden objects if I turn on Hybrid Mode. However, I don't see a Hybrid Mode setting in the Project Properties but instead I see only Hybrid Mobile option.

 

<input id="generateDoc" name="Product.GenerateDocuments" type="hidden" value="false">

 

In real world this action will not be performed a by user in UI however, I need this to identify if the request is coming from an actual User or from a Key word test. I know we could use different set of User accounts but that is not an option in my case.

 

Any help on this is very much appreciated.

Thanks!

 

2 REPLIES 2
Marsha_R
Community Hero

There's a hybrid mode in here

https://support.smartbear.com/testcomplete/docs/app-testing/web/flash-flex/approaches/debug-player-v...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
AlexKaras
Community Hero

...and use the .SetText() method to set the value to the hidden field.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: