Start a new topic

AutoFillMappingX Royal JSON Unclear

Ok hopefully last Royal JSON question/problem for a while :). I did look this time in the documentation and XML and I found the right value I believe but it still doesn't work, even though Royal JSON says it's valid.


Here is what I've tried:

 

{
    "Objects": [
        {
            "Type": "WebConnection",
            "Name": "test",
            "URL": "https://test.com",
            "AutoFillMappingX": [
                {
                    "Mode": "ReplaceValue",
                    "Name": "username",
                    "Selector": "input[name=username]",
                    "ReplacementValue": "$EffectiveUsername$",
                    "Result": 0
                },
                {
                    "Mode": "ReplaceValue",
                    "Name": "password",
                    "Selector": "input[name=password]",
                    "ReplacementValue": "$EffectivePassword$",
                    "Result": 0
                },
                {
                    "Mode": "Click",
                    "Name": "Sign in",
                    "Selector": "input[name=action]",
                    "ReplacementValue": "",
                    "Result": 0
                }
            ]
        }
    ]
}

 What am I missing this time?

1 Comment

Hi there,


for this, you would need to use the 'AutoFillElements' property.

Please take a look at the documentation here:

https://docs.royalapps.com/r2021/scripting/rjson/available-properties/royaljsonobject.html#autofillelements


Let us know if you need anything else!


best regards,

Christoph

Login or Signup to post a comment