• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get instance of an existing Browser.  RSS feed

 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!