Change Browser Capabilities of IE through Robot Framework using Selenium2Library

2,869 views
Skip to first unread message

Archana Ramakrishnan

unread,
Jun 25, 2015, 3:42:33 PM6/25/15
to robotframe...@googlegroups.com
I do not have privilages to change IE settings locally. I wrote a Java Code to change the capabilities of IEDriver using :

DesiredCapabilities caps = DesiredCapabilities.internetExplorer();    caps.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
caps.setCapability( InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);

I want to do the same thing while using the selenium webdriver in RobotFramework. I want to do something like this. But I do not know the right way to do it.

*** Keywords ***
Test Browser
    ${options}= Evaluate  sys.modules['selenium.webdriver'].DesiredCapabilities.INTERNETEXPLORER sys,selenium.webdriver
    Call Method    ${options}    add_argument      INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS:True   
    Create WebDriver  Internet Explorer ie_options=${options}

Open Browser To Login Page
    Open Browser    ${LOGIN URL}    ${BROWSER}  
    Maximize Browser Window
    Set Selenium Speed    ${DELAY}
    Login Page Should Be Open

Please let me know. Thank You.

Andrea Bisello

unread,
Feb 23, 2016, 4:57:51 AM2/23/16
to robotframework-users
i have a similar problem here https://groups.google.com/forum/#!topic/robotframework-users/b-v9sZb2TmY

do you have any good news?

Kevin O.

unread,
Feb 23, 2016, 10:51:48 AM2/23/16
to robotframework-users
How unfortunate you do not have full control over your test system.
This was kind of tricky - had to dig into Selenium's source code.
I tested this and it worked.
Cheers,
Kevin

*** Keywords ***
Test Browser


    $
{caps}=    Evaluate    sys.modules['selenium.webdriver'].DesiredCapabilities.INTERNETEXPLORER    sys,selenium.webdriver
   
Set To Dictionary    ${caps}    ignoreProtectedModeSettings    ${True}
   
Create WebDriver    Ie    capabilities=${caps}    
   
Goto    http://www.google.com        


Dee L

unread,
Sep 18, 2017, 4:28:26 PM9/18/17
to robotframework-users
Does this still work with what I have below?

Suite Executor: Robot Framework 3.0.3.dev20170213 (Jython 2.7.0 on java1.8.0_121)
IEDriverServer.exe 3.5.0.0?


... I keep getting...
TypeError: unicode indices must be integers
Reply all
Reply to author
Forward
0 new messages