Hello.
I need to download JNLP file from remote system to certain directory using Firefox (as this is typical use sceanario) and I have problem with that. I have prepared my firefox profile that makes browser to always download clicked JNLP to default directory. Now I would like to use this firefox profile in Open Browser keyword from Selenium2Library Java port. It looks that this keyword is missing ff_profile_dir option:
Original Selenium2 keyword looks like this:
Open Browser url, browser=firefox, alias=None, remote_url=False, desired_capabilities=None, ff_profile_dir=None
Java port of Selenium2Library looks a little different:
Open Browser url, browserName=firefox, alias=NONE, remoteUrl=NONE, desiredCapabilities=NONE, browserOptions=NONE
I have created zip file of my profile directory, and then I have converted this to base64. So no my browser profile is a single file called profile.zip.b64.
I have tried to use this in my Robot testcase like this:
${firefox_profile} = Get File /home/tauser/profile.zip.b64
Open Browser ${startpage} firefox None None firefox_profile:${firefox_profile}
Unfortunately it doesn't work - I have recived error: java.lang.IllegalArgumentException: argument type mismatch
Does anybody know how could I overcome this problem? How can I take into use my selected firefox profile in Java port of Selenium2Library?
Krzysztof