Can I use links in different site in setValue in file upload using nightwatch? I look up a link in stackoverflow and see this: File Upload Testing in Nightwatch.js but the answer said that it will not work if the file is coming from 'http://localhost:3000/testfile.txt'. Is this not possible?
Asked
Active
Viewed 160 times
1 Answers
0
The simple answer is no you can not specify the web server path.
You can read more about here.
What you can do is First download file and then use its absolutes or relative paths to upload.

Hardik Shah
- 4,042
- 2
- 20
- 41
-
Hi I am using selenium for my nightwatch, I cannot get the absolute path inside seleniu,m – Dranier Aug 08 '18 at 02:35
-
@Dranier are you trying to get the current domain + /testfile.txt' ? – Ray Jan 14 '20 at 06:08