SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.18k stars 8.11k forks source link

[🐛 Bug]: Not able to Upload the Files if hasAuthentication used in our Scripts #12644

Closed gitnithin closed 9 months ago

gitnithin commented 1 year ago

What happened?

I am using Cucumber Framework with Java(11 version), For our application to enter the username and password only hasAuthentication works tried with so many methods, So we are using hasAuthentication to pass the credentials

In our App , there is one testcase to upload the file, but i am not able to upload the files, If i am using AutoIt to pass the credentials then we are able to upload the files, as AUTOIT is not recommended we are using hasAuthentication

I am using latest Selenium 4.11.0 version

Hope i will be getting the Solution for this image

How can we reproduce the issue?

1. Use has Authentication methods to pass the credentials
2. Try to Upload the files

Relevant log output

As the testcase getting passed but file is not uploading so didnt get any logs for this

Operating System

Windows 10

Selenium version

4.11.0 version

What are the browser(s) and version(s) where you see this issue?

Chrome and Edge

What are the browser driver(s) and version(s) where you see this issue?

I am using webdriver manager

Are you using Selenium Grid?

No

github-actions[bot] commented 1 year ago

@gitnithin, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] commented 1 year ago

Hi, @gitnithin. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

gitnithin commented 1 year ago

image

gitnithin commented 1 year ago

above is the snippet which we are using to upload the report , currently we are using AUTOIT if I am using the hasauthentication to upload the report, I will using sendkeys method to upload the file

titusfortner commented 1 year ago

This does not help us understand the problem at all.

What selenium code are you using, what error are you getting? Provide logs and stack trace. Ideally you isolate just the part with the problem on a public url so we can copy and paste it and see what is happening.

diemol commented 9 months ago

I will close this as we did not get more information from the OP. We can reopen it in case more information is provided.

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.