*** Keywords ***Start Browser [Documentation] Start chrome browser Set Selenium Implicit Wait 10
## Init BrowserMob Proxy ${BMPATH} Join Path ${EXECDIR} browsermob-proxy-2.1.4 bin browsermob-proxy.bat Start Local Server ${BMPATH}
## Create dedicated proxy on BrowserMob Proxy &{host} Create Dictionary address=127.0.0.1 port=7070 ${BrowserMob_Proxy}= Create Proxy ${host}
#Blacklist URLS ## Configure Webdriver to use BrowserMob Proxy ${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver Call Method ${options} add_argument --proxy\=127.0.0.1:7070
Create WebDriver Chrome chrome_options=${options} Go to https://www.google.comThis is my current progress but whatever I write as regexp in line 13, google is never blocked and always opens
*** Keywords ***Start Browser[Documentation] Start chrome browserSet Selenium Implicit Wait 10## Init BrowserMob Proxy${BMPATH} Join Path ${EXECDIR} browsermob-proxy-2.1.4 bin browsermob-proxy.batStart Local Server ${BMPATH}## Create dedicated proxy on BrowserMob Proxy&{host} Create Dictionary address=127.0.0.1 port=7070${BrowserMob_Proxy}= Create Proxy ${host}#Blacklist URLS## Configure Webdriver to use BrowserMob Proxy${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriverCall Method ${options} add_argument --proxy\=127.0.0.1:7070Create WebDriver Chrome chrome_options=${options}Go to https://www.google.com
Anyone can help?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.