Node.js & Webdriver.io with Selenium Standalone Server can´t use custom profiles

305
August 12, 2017, at 09:09 AM

Hey I downloaded geckodriver and included it with

java -Dwebdriver.firefox.driver="C:\\xampp\\htdocs\\project\\geckodriver.exe" -jar selenium-server.jar

I use Selenium Standalone Server 3.4.0

then in my node script I use

const options = {
desiredCapabilities: {
browserName: 'firefox',
firefox_profile:"C:/Users/Administrator/AppData/Local/Mozilla/Firefox/Profiles/greerg.profile"
}
} 
const client = webdriverio.remote(options).init();

It seems that it worked when I look into Selenium logs. Because there will be not created a temp profile at windows temp folders like in a new session instead you can see the profile from above. But it doesn´t worked. I doesn´t save cookies or addons or anything it´s like a fresh version every time. I also tried to use instead of firefox_profile, profile or "moz:profile" or I tried to import the profile as base64 string with fs. But nothing really worked maybe I just write it wrong? How can I include a custom profile - what code do you use?

Rent Charter Buses Company
READ ALSO
Trouble with getting script to recognize a JSON file in the directory (Google API)

Trouble with getting script to recognize a JSON file in the directory (Google API)

So I am attempting to learn how to use the Google Sheets API with Nodejs

294
node stream concats chunks before running

node stream concats chunks before running

So I have a tranfrom stream that is writing not pushing to the another stream because the stream changes what it writes toIf I write to same stream multiple times in a row it,before it emits the data event, concats them together

284
How to use dispose function in lru-cache npm

How to use dispose function in lru-cache npm

I am using LRU-Cache package in npm

380
Ghost Blog Install just shows index list of files

Ghost Blog Install just shows index list of files

I'm trying to get the latest version of Ghost blogging platform integrated into my existing siteFor testing purposes, I have installed it in a new directory on my site called /blog_new

269