Solved

open pages via VB.NET into Firefox

Posted on 2008-10-03
5
1,252 Views
Last Modified: 2013-12-07
This question is in two parts:

1) I want to open url's in firefox, at this point, the assumption can be made that firefox is installed (since it's going to be used on my system), and

2) once I have the tabs open, I want to read back the page source(s) into a multi-line text box.

Let's assume (for the sake of argument) that at this point I want to open two tabs and read back the source from the firefox browser. The key point is that I need to be able to get the source for all open tabs
0
Comment
Question by:madivad2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 400 total points
ID: 22641830
1) You can open it using command line arguments as described in this Mozilla support page
http://support.mozilla.com/en-US/kb/Command+line+arguments
2) You can use HTTPRequest object and get the page source directly from the web server.
0
 
LVL 2

Author Comment

by:madivad2
ID: 22642269
I was having issues with doing it directly to the web site via code due to required cookies not being available to me, or simply not knowing how to implement them (there is another question out there in relation to this, ie cookies)

In relation to the first part of the problem, that hinges on knowing where firefox is installed. I know there's an easier way where you can reply on the file associations of the html page, but can't remember how it's done
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 22643891
You can launch the URL directly but you need to make sure that firefox is the default browser. You could instead search for the firefox.exe in the current system drive and run it with the parameters. This way you could also know if the firefox is not installed.
0
 
LVL 2

Author Comment

by:madivad2
ID: 22644857
I found it, this is what I was looking for... now the memories come flooding back :)

http://www.devx.com/dotnet/Article/7914
0
 
LVL 2

Author Closing Comment

by:madivad2
ID: 31502839
Not quite what I was after, I found the link in the end, but recognise your contributions. Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Several part series to implement Internet Explorer 11 Enterprise Mode
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question