Chrome getting stuck when using modheader

222 views
Skip to first unread message

Wilson Tam

unread,
May 24, 2019, 11:02:23 PM5/24/19
to Selenium Users
We have been using modheader for our work for the last 2 years and it has been working fine until recently. 

Chrome gets stuck as soon as it launches and wouldn't proceed.  At first, it was happening randomly.  But now, it is happening all the time.  We have also tried updating to the latest modheader version, but that didn't help.  Does anyone have any idea?

This is what we have in our selenium script.


options.addExtensions(new File("C:\\Selenium\\modheader_2_1_1.crx"));

driver.get("chrome-extension://idgpnmonknjnojddfkpgkljpfnnfcklj/settings.tmpl.html");

((JavascriptExecutor)driver).executeScript(

"localStorage.setItem('profiles', JSON.stringify([{ " +

" title: 'Selenium', hideComment: true, appendMode: '', " +

" headers: [ " +

" {enabled: true, name: 'Authorization', value: 'xxxxxxxxxxxxxxxxxxxxxx', comment: ''}, " +

" ], " +

" respHeaders: [], " +

" filters: [] " +

"}]));

smasher817

unread,
May 25, 2019, 12:23:34 PM5/25/19
to Selenium Users
Wilson, can you try to use browser mob proxy, to see it this helps . I am not familiar with modheader. In Browsermob proxy you can intercept network calls and modify headers.
Reply all
Reply to author
Forward
0 new messages