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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -