How to give setExperimentalOption for Edge Browser in QAF

268 views
Skip to first unread message

Dinesh Balaji

unread,
Mar 2, 2022, 1:02:42 PM3/2/22
to qaf users
I want to do the following to the edge browser. 

HashMap preferences = new HashMap();
preferences.put("download.default_directory", location);
         
EdgeOptions options = new EdgeOptions();
options.setExperimentalOption("plugins.always_open_pdf_externally", True);
options.setExperimentalOption("download.default_directory", location);
options.setExperimentalOption("download.extensions_to_open", applications/pdf);
options.setExperimentalOption("download.directory_upgrade", True);
options.setExperimentalOption("download.prompt_for_download", False);
options.setExperimentalOption("prefs", preferences);

WebDriver driver = new EdgeDriver(options);


How the above can be achieved in QAF ?

cjayswal

unread,
Mar 9, 2022, 5:50:11 PM3/9/22
to qaf users
You can either set capabilities/options through property or using listener. Refer similar answer for chrome.

બુધવાર, 2 માર્ચ, 2022ના રોજ 10:02:42 AM UTC-8 વાગ્યે dineshba...@gmail.com દ્વારા આમ લખવામાં આવ્યું હતું:
Reply all
Reply to author
Forward
0 new messages