fabiankmilo Posted November 11, 2020 Share Posted November 11, 2020 hello everyone, i am new to forum, i am trying to change download directory using webdriver UDF from $ sDesiredCapabilities, can someone help me? Link to comment Share on other sites More sharing options...
Danp2 Posted November 11, 2020 Share Posted November 11, 2020 What have you tried? Completely untested, but I suspect it should look something like this -- Local $sDesiredCapabilities = '{"capabilities":{"alwaysMatch": {"goog:chromeOptions": {"w3c": true, "prefs": {"download.default_directory": "c:\\your\\desired\\directory\\"}}}}}' mLipok 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
fabiankmilo Posted November 11, 2020 Author Share Posted November 11, 2020 perfect !! it works!! thanks men!! Link to comment Share on other sites More sharing options...
fabiankmilo Posted November 11, 2020 Author Share Posted November 11, 2020 do you know how I can rename the download file? Link to comment Share on other sites More sharing options...
Danp2 Posted November 11, 2020 Share Posted November 11, 2020 Don't know that it is possible. Perhaps we could come up with some additional thoughts if you gave a detailed explanation along with some code showing what you've tried thus far. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now