[Selenium] Add option to manage WebDriver Parameters via Variables

Hi @qqilihq,

I tried to dynamically define the download location using a variable but that seems not possible.

Hence, I’d like to propose to add the option “Flow variable” and select one.

Best
Mike

Hi Mike,

that would make sense - in the meantime I suggest:

Use a string flow variable input with JSON which includes the applied variables. You could build it e.g. with the new Handlebars node:

Hope that helps!

-Philipp

2 Likes

Just as a side note if anyone is interested in my approach as I was not sucessfull (yet) in using Handlebars. What I did was:

  1. Use an initial WebDriver Factory to extract my desired settings (w/o those of the download location)
  2. Extracted the settings for the download location once and inserted a PLACEHOLDER
{
  "chromeOptions": {
    "args": [
      "--safebrowsing-disable-download-protection"
    ],
    "prefs": {
      "download": {
        "prompt_for_download": false,
        "directory_upgrade": true,
        "default_directory": "PLACEHOLDER"
      },
      "safebrowsing": {
        "enabled": true
      }
    }
  }
}
  1. Used the Local File Browser Configuration Node (it also accepts greacefully folders)

image

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.