• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get instance of an existing Browser.

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I want to change browser configuration settings through java like proxy. I've already an existing(opened) browser. In that browser, I want to inject/change proxy settings. I dint get any snippet as clue for start-up. I'm looking for help. Browser is any type(chrome, firefox, IE etc.,).

Thanks:
Ramakrishna K.C
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While I'm not sure what might be the best approach (which might anyway differ between browsers and OSes), I'm fairly certain that trying to use Java for this is not it. Why can't the user change those settings manually? It sounds a bit fishy.
 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've code of that, But, it starts a new browser not the existing one. It uses selenium



The above code only for firefox browser. When this code executes, it fires a firefox. So, next I want to change the proxy of this browser. Is there any way.
1) I want to change existing browser configuration again Or
2) I can create a new browser by closing an existing browser, If I do this, I will not get the session.
So I do not prefer a second solution.

I think, This code helps to analyze and give me a clue.

Thanks:
Ramakrishna K.C
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic