19 Jan 2023
11:01 PM
- last edited on
27 Sep 2023
03:12 PM
by
AgataWlodarczyk
Hi,
we have a blocker for synthetic.
Scenario: if I select the value using dropdown then Bank details should be auto-populated in the below fields however when I make a selection with synthetic or Java script values are not getting populated and come as blank but if I pass the external mouse click event anywhere on Webpage than it works but with synthetic it's not happening, not sure for some reason application is not treating synthetic click as real user click.
Tried passing the Mouse event/Enter key/keystroke then enter on the Synthetic still no luck.
Any suggestions, please
Thanks
Solved! Go to Solution.
20 Jan 2023 09:36 AM
Hello.
I am not sure but have another problem related to pseudo classes.
Locators are different for each session, in my case it was so.
I have delete some of them and play back click path. Deleted elements did not affect, the step and test was successfully completed.
There may be some kind of global JS variable that tells the application whether the form is full or not. It can also be adjusted through editing an action, as we can do similar through the browser developer tools. I would try that way.
Regards,
Romanenkov Alex
25 Jan 2023 09:33 AM
If the suggestion above didn't help, please can you create a chat/ support ticket as it would be easier if we can look at the site and give you advice.
25 Jan 2023 11:14 PM
Sure Thanks @HannahM
23 Aug 2023 09:26 AM
To follow up on this, these clicks were trusted events, which we were unable to interact with. We have added a new feature to cover this scenario which is enabled by adding the following to the configuration section of the script:
,"experimentalProperties": [
{
"name": "enableTrustedEvents",
"value": "true"
}
]
For Clicks, this is supported from Synthetic 1.266 (1.266 Recorder, 1.266 Public Locations, 1.267 Synthetic AG). The above property enables the script to perform clicks that require the event to be trusted.
For Keystrokes, this is supported from 1.269 (1.269 Recorder, 1.269 Public Locations, 1.269 Synthetic AG). the above property enables the script to perform keystrokes that require the event to be trusted.
07 Jun 2024 02:46 AM - edited 07 Jun 2024 02:48 AM
Hi Hannah,
Glad to find this post, but I encountered a new issue after having "enableTrustedEvents" enabled.
Some background:
I have 3 key stroke steps as below:
a) enter user name
b) enter password
c) enter search string
eg. the search string is like "heat beat" then c) shows like below(which is not right)
However, a) hit timeout error during playback . weridly, this seemed only happened during playback as no error out in the Synthetic execution.
any idea how to solve it ? Thank you in advance.