I Tried adding a variable inside a dictionary, in a triple qoutes strings, but the value of the variable is not given.
My Code
os= 'Linux'
driver.execute_cdp_cmd(
"Page.addScriptToEvaluateOnNewDocument",
{
"source": """
Object.defineProperty(navigator, 'platform', {get: () => os});
"""
}
)
please what's the right way to add my varriable