Trying to launch url in Edge with IE compatability mode using robotframe work python

594 views Asked by At

I'm Trying to launch url in Edge with IE compatibility mode using robotframe work python and I'm using below code but getting this error AttributeError: 'Options' object has no attribute 'attach_to_edge_chrome' . Can some please help on this

code used:

Open Browser url ie options=ignore_zoom_level=True;attach_to_edge_chrome=True; edge_executable_path="C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"

1

There are 1 answers

9
Yu Zhou On

You could use Maximize Browser Window to maximize the browser window. Please refer to the sample code below (you can change the path to your owns):

*** Settings ***
Library   SeleniumLibrary

*** Variables ***
${IEDriver}  E:/webdriver/IEDriverServer.exe

*** Test Cases ***
Example Test
    Open Browser  https://www.google.com/  ie  executable_path=${IEDriver}  options=ignore_zoom_level=True; attach_to_edge_chrome=True; edge_executable_path="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
    Maximize Browser Window

Robot Framework version: 5.0.1

SeleniumLibrary version: 6.0.0