9

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?

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi I am using selenium for my nightwatch, I cannot get the absolute path inside seleniu,m
@Dranier are you trying to get the current domain + /testfile.txt' ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.