Click Here to Download OpenInternetExplorerWithSeleniumWebDriverTool.zip
We can also open Internet Explorer Browser programmatically using selenium 'WebDriver' API with ASP.Net C#.
In previous article we learned How to Open Firefox Browser using selenium 'WebDriver'.
For opening or launching Internet Explorer (IE) is different from Open FireFox. In that we need one extra EXE file named 'IEDriverServer.exe' file and also set 'IE' Options object to give Startup URL.
If you Do not have 'IEDriverServer.exe' file file at that time Code gives us an error like :
But basically it is very simple.
Here are steps to learn How to Open IE Browser :
STEP 1 : First create new 'WebSite' after creating new 'WebSite' add new page. On this previous article your learn this.
STEP 2 : Now, you need special Executable (EXE) file named "IEDriverServer.exe". You can download this file from this URL :
http://selenium-release.storage.googleapis.com/index.html. You can choose latest version folder on this link. Or you can also get this file from our project zip file, In our project we have both 32 and 64 bit zip file. You can get that file from zip file.
STEP 3 : After downloading file, Add new folder in your website or project named it 'EXEFiles' and copy your downloaded file 'IEDriverServer.exe' in this folder.
STEP 4 : Open your new page code file like 'Default.aspx.cs' file. Import selenium 'namespaces' and write following code on 'Open Internet Explorer Browser' button click event.
Code File :
Explanation : In this code you can see that First we set path of 'IEDriverServer.exe' file, in which folder we save this file. After that, we create object of 'InternetExplorerOptions' class and set properties like 'InitialBrowserUrl' and 'IntroduceInstabilityByIgnoringProtectedModeSettings'.
This 'InitialBrowserUrl' property use for By default when IE open this URL is open in IE. After that, we create object of 'InternetExplorerDriver' class to open IE. You can see that in constructor of 'InternetExplorerDriver' class we supply 'IE_DRIVER' Path and 'IE OPTION' object.
STEP 5 : Run the website. After Default page is appeared in browser, this website may run in any browser. You click on 'Open Internet Explorer Browser' button. It will Open Internet Explorer Successfully.
[Image : Run Website and open Page] :
[Image : Internet Explorer Opened] :
Full Video :
Note : If any runtime error occurred by running our downloaded project meaning of that your browser version and Selenium API DLL version is not matching. To resolve this issue you need to download latest Selenium C# API DLLs from this link and paste downloaded DLLs into 'Bin' folder of downloaded project. Or you can remove references of existing DLLs references and add new DLLs references. You can learn this thing from this link.
We can also open Internet Explorer Browser programmatically using selenium 'WebDriver' API with ASP.Net C#.
In previous article we learned How to Open Firefox Browser using selenium 'WebDriver'.
For opening or launching Internet Explorer (IE) is different from Open FireFox. In that we need one extra EXE file named 'IEDriverServer.exe' file and also set 'IE' Options object to give Startup URL.
If you Do not have 'IEDriverServer.exe' file file at that time Code gives us an error like :
The IEDriverServer.exe file does not exist in the current directory or in a directory on the PATH environment variable.
But basically it is very simple.
Here are steps to learn How to Open IE Browser :
STEP 1 : First create new 'WebSite' after creating new 'WebSite' add new page. On this previous article your learn this.
STEP 2 : Now, you need special Executable (EXE) file named "IEDriverServer.exe". You can download this file from this URL :
http://selenium-release.storage.googleapis.com/index.html. You can choose latest version folder on this link. Or you can also get this file from our project zip file, In our project we have both 32 and 64 bit zip file. You can get that file from zip file.
STEP 3 : After downloading file, Add new folder in your website or project named it 'EXEFiles' and copy your downloaded file 'IEDriverServer.exe' in this folder.
STEP 4 : Open your new page code file like 'Default.aspx.cs' file. Import selenium 'namespaces' and write following code on 'Open Internet Explorer Browser' button click event.
Code File :
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Selenium; using OpenQA; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnOpenIEBrowser_Click(object sender, EventArgs e) { string STR_IE_DRIVER = Server.MapPath("EXEFiles"); //Set Path for EXE file var objIEOptions = new OpenQA.Selenium.IE.InternetExplorerOptions() // Set Options { InitialBrowserUrl = "www.google.com", IntroduceInstabilityByIgnoringProtectedModeSettings = true }; //Create object for open IE OpenQA.Selenium.IE.InternetExplorerDriver objFF = new OpenQA.Selenium.IE.InternetExplorerDriver(STR_IE_DRIVER, objIEOptions); } }
Explanation : In this code you can see that First we set path of 'IEDriverServer.exe' file, in which folder we save this file. After that, we create object of 'InternetExplorerOptions' class and set properties like 'InitialBrowserUrl' and 'IntroduceInstabilityByIgnoringProtectedModeSettings'.
This 'InitialBrowserUrl' property use for By default when IE open this URL is open in IE. After that, we create object of 'InternetExplorerDriver' class to open IE. You can see that in constructor of 'InternetExplorerDriver' class we supply 'IE_DRIVER' Path and 'IE OPTION' object.
STEP 5 : Run the website. After Default page is appeared in browser, this website may run in any browser. You click on 'Open Internet Explorer Browser' button. It will Open Internet Explorer Successfully.
[Image : Run Website and open Page] :
(To view original size image , click on image) |
[Image : Internet Explorer Opened] :
(To view original size image , click on image) |
Full Video :
really well said about How to Open Internet Explorer Browser using selenium webdriver with ASP.Net C# keep share interesting article on selenium
ReplyDeleteSelenium Training Institute in Chennai
Great article!!!!!This is very important information for us.I like all content and information.I have read it.You know more about this please visit again. Best Hadoop Training | Hadoop Online Training
ReplyDeleteNice information about test automation tools my sincere thanks for sharing post Please continue to share this post..
ReplyDeleteWeblogic Server 12cR2 Training
Thanks you for nice article.
ReplyDeleteif you want to know the technologies updates,visit below site.
Dot Net Tutorial for Beginners with Examples
ReplyDeleteVery Helpful Post And Explained Very Clearly About All the things.Very Helpful. Coming To Our Self We Provide Food Service Parts Through Out US At Very Affordable Prices And Also We Offer Same Day Shipping In US.We Offer Only Genuine Products.Really Thanks For Posting.
Thankful for the Informative Post The Best article, Bala Guntipalli
ReplyDeleteThis Blog is very helpful and useful,came to know that i should be strong in my basics and this blog helps me to improve it,Chicago Immediate Care Services Provided by Us.Thanks For Posting.I Am refereed by my friend to this blog and i also want to refer my other friends to this blog.Really Thanks for posting such an informative post and thanks for sharing such knowledgeable posts.
ReplyDeleteThis Blog Provides Very Useful and great Information. United States Medical Licensing Examination Thanks for sharing.
ReplyDeleteI found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog.
ReplyDeleteDevops training in velachry
Devops training in OMR
Deops training in annanagar
Devops training in chennai
Devops training in marathahalli
Devops training in rajajinagar
Devops training in BTM Layout
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
ReplyDeleteData science training in velachery
Data science training in kalyan nagar
Data Science training in OMR
Data Science training in anna nagar
Data Science training in chennai
Data Science training in marathahalli
Data Science training in BTM layout
Data Science training in rajaji nagar
This comment has been removed by the author.
ReplyDelete
ReplyDeleteNice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
angularjs-Training in annanagar
angularjs Training in chennai
angularjs Training in chennai
angularjs Training in bangalore
Greetings. I know this is somewhat off-topic, but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform like yours, and I’m having difficulty finding one? Thanks a lot.
ReplyDeleteAmazon Web Services Training in Tambaram, Chennai|Best AWS Training in Tambaram, Chennai
Amazon Online Training
AWS Training in JayaNagar | Amazon Web Services Training in jayaNagar
AWS Training in Rajaji Nagar | Amazon Web Services Training in Rajaji Nagar
Amazon Web Services Training in Pune | Best AWS Training in Pune
AWS Online Training | Online AWS Certification Course - Gangboard
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
ReplyDeletepython training in OMR
python training in tambaram
python training in annanagar
nice blog thank you so much for sharing to us
ReplyDeletebest python training in chennai
selenium training in chennai
selenium training in omr
selenium training in sholinganallur
best java training in chennai
data Science training in chennai
Thanks for your Blogs Appreciating the persistence you put into your blog and detailed information you provide.
ReplyDeleteAws training chennai | AWS course in chennai
Rpa training in chennai | RPA training course chennai
oracle training chennai | oracle training in chennai
Hadoop Training in chennai | Hadoop training course in chennai
NICE POST...
ReplyDeleteiot internships
inplant training in chennai
internship for automobile engineering students
internship for mca students in chennai
internship for eee students
internship for aeronautical engineering students
inplant training report for civil engineering
internship for ece students in chennai with stipend
summer training for ece students after second year
python internship
This comment has been removed by the author.
ReplyDeleteNICE BLOG...
ReplyDeletehow to hack flipkart
tp link wifi password hack
power bi developer resume
android secret codes and hacks pdf
slideshow html code for website
javascript max integer
tell me about yourself
given signs signify something and on that basis
kumaran systems interview pattern
bangalore traffic essay
nice.
ReplyDeleteAcceptance is to offer what a
lighted
A reduction of 20 in the price of salt
Power bi resumes
Qdxm:sfyn::uioz:?
If 10^0.3010 = 2, then find the value of log0.125 (125) ?
A dishonest dealer professes to sell his goods at cost
price but still gets 20% profit by using a false weight. what weight does he substitute for a kilogram?
Oops concepts in c# pdf
Resume for bca freshers
Attempt by security transparent method
'webmatrix.webdata.preapplicationstartcode.start()' to access security critical method 'system.web.webpages.razor.webpagerazorhost.addglobalimport(system.string)' failed.
Node js foreach loop
Good Post..
ReplyDeletehow to hack with crosh
javascript integer max
apply css to iframe content
given signs signify something and on that basis assume the given statement to be true
zeus learning aptitude paper for software testing
how to hack wifi hotspot on android
she most of her time tomusic
unexpected token o in json at position 1
ywy
javascript sort array of objects by key value
great post.
ReplyDeleteComplaint letter to bank for deduction
Cisco aci interview questions
Type 2 coordination chart l&t
Mccb selection formula
Given signs signify
something and on that basis assume the given statement
Adder and subtractor using op amp theory
Power bi resume for 3 years experience
Power bi resume for experience
Php developer resume for 2 year experience
Ayfy cable
good
ReplyDeleteinternship in chennai
internship in chennai
internhips
students internships
winter internships
internships winter 2019
keep share.
ReplyDeleteinternship in chennai
internship in chennai
internhips
students internships
winter internships
internships winter 2019
good
ReplyDeletejs max int
c++ program to print pyramid using *
why do you consider yourself suitable for this position
hack whatsapp ethical hacking
databricks interview questions
paramatrix aptitude questions and answers
which is the closest approximation to the product 0.3333
a watch was sold at a loss of 10
ip spoofing tutorial
advantages of packages in java
This comment has been removed by the author.
ReplyDeleteslovakia web hosting
ReplyDeletetimor lestes hosting
egypt hosting
egypt web hosting
ghana hosting
iceland hosting
italy shared web hosting
jamaica web hosting
kenya hosting
kuwait web hosting
The article you have shared is very useful. Selenium Testing is also talk of the town in today's digital world. So its very important to know and understand how we can open Internet Explorer Browser programmatically using selenium 'WebDriver' API with ASP.Net C#. All the guidelines and screenshots you have shared is really useful for all the information seeker who wants to know how it works. Thanks for sharing and keep posting like this.
ReplyDeleteThanks for this blog are sharing information.
ReplyDelete7 tips to start a career in digital marketing
“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.
we have offered to the advanced syllabus course digital marketing for available join now.
more details click the link now.
https://www.webdschool.com/digital-marketing-course-in-chennai.html
Nice information...
ReplyDeleteIntern Ship In Chennai
Inplant Training In Chennai
Internship For CSE Students
Online Internships
Coronavirus Update
Internship For MBA Students
iot internship
usefull...
ReplyDeletecoronavirus update
inplant training in chennai
inplant training
inplant training in chennai for cse
inplant training in chennai for ece
inplant training in chennai for eee
inplant training in chennai for mechanical
internship in chennai
online internship
We provide you with flexible services and complete hybrid network solutions. It can provide your organisation with exceptional data speeds, advanced external security protection, and high-resilience by leveraging the latest SD-WAN and networking technologies to monitor, manage and strengthening your organisation’s existing network devices.
ReplyDeletehttps://www.quadsel.in/networking/
https://twitter.com/quadsel/
https://www.linkedin.com/company/quadsel-systems-private-limited/
https://www.facebook.com/quadselsystems/
#quadsel #network #security #technologies #managedservices #Infrastructure #Networking #OnsiteResources #ServiceDeskSupport #StorageServices #WarrantyAMCServices #datacentersolutions #DataCenterBuild #EWaste #InfraConsolidation #DisasterRecovery #NetworkingServices #ImagingServices #MPS #Consulting #WANOptimisation #enduserservices
good
ReplyDeletehttps://www.kaashivinfotech.com/best-final-year-project-in-information-technology/
nice
ReplyDeletehttps://www.kaashivinfotech.com/best-final-year-project-in-information-technology/
I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog.
ReplyDeleteDevOps Training in Chennai
DevOps Course in Chennai
It was wonerful reading your conent. Thankyou very much. # BOOST Your GOOGLE RANKING.It’s Your Time To Be On #1st Page
ReplyDeleteOur Motive is not just to create links but to get them indexed as will
Increase Domain Authority (DA).We’re on a mission to increase DA PA of your domain
High Quality Backlink Building Service
1000 Backlink at cheapest
50 High Quality Backlinks for just 50 INR
2000 Backlink at cheapest
5000 Backlink at cheapest
I really liked your blog article.Really thank you! Really Cool.
ReplyDeleteMulesoft training
python training
angular js training
selenium trainings
Infycle Technologies, the top software training institute and placement center in Chennai offers the Best Digital Marketing course in Chennai for freshers, students, and tech professionals at the best offers. In addition to Digital Marketing, other in-demand courses such as DevOps, Data Science, Python, Selenium, Big Data, Java, Power BI, Oracle will also be trained with 100% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7504633633 to get more info and a free demo.
ReplyDeleteOccur mission call yard.top 10 news today
ReplyDeleteThem light phone show worker attack. Fly four oil seven until hour. Begin girl administration would than.news headlines
ReplyDeleteThese quite herself give popular reason box. Security we more buy despite also. Meeting natural player because popular consider.top 10 news today
ReplyDeleteList Mrs also environmental gas bad. Down too door teacher.news headlines
ReplyDelete