Groups
Groups
Sign in
Groups
Groups
Selenium Users
Conversations
Labels
About
Send feedback
Help
How to navigate to my local html file using Selenium Webdriver
3,338 views
Skip to first unread message
Budh Ram
unread,
Aug 24, 2015, 1:02:00 PM
8/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi Folks,
I am building a automated test where I need to open a browser and then open a html file "views/index.html".
Any idea how to achieve it?
Kaleem Uddin Mohammed Abdul
unread,
Aug 25, 2015, 12:45:37 AM
8/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Use Java.io if you are using Java. If you are using C# using System.IO.
Jon Thor Austen
unread,
Aug 25, 2015, 8:31:33 PM
8/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Seems like something like this should work:
webdriver
.
get
(
"file:///D:/folder/abcd.html"
);
Reply all
Reply to author
Forward
0 new messages