I have a html file in my local machine.When running my selenium-java code locally through eclipse, I can access the html file through the code mentioned below.
File file = new File(url);
driver.get("file:///" + file.getAbsolutePath());
If I run the code through selenium grid, Registered node doesn't pick up the html file path to be opened in chrome since the absolute path points to the local machine.
Is there any solution available to open the locally available html file through selenium grid-node?
First option is:
You need to follow the below steps:
The other option is:
Use Javascript to create the page dynamically and then work with it. You can refer to this stackoverflow post that talks about how to add a div to a page and extrapolate that information to weave in the entire page using a series of calls to driver.executeScript()
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/13442902-cfd6-4008-90b2-acea9636208c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/20b82413-1e3c-4e3a-b485-ef6111f363ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.