selenium - browse a file from my PC with selenuim -


i want write selenium program on site need part of process browse file operating system. how can that?

if mean use selenium open html file on local, it's easy do.
1. open html file on browser
2. copy url in browser address, should like:

file:///c:/workspace/js-projects/tey/protractor-cucumber-tey/reports/cucumber_report.html 

3. put above url in browser.get()

better way it's caclcute html file absolute path in scritp dynamically (rather hard code), prefix file://// on path, possible need replace '\' '/' in path.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -