-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication Pop up displayed by Chrome is available in Inspect tool but not in PageSource #212
Comments
Hi @yodurr and Team, Would you guys like to comment on this issue? Its kinda urgent. Please! Regards |
Hi @yodurr, Do we have any update on this? Regards |
We can repro this, still looking at the root cause. |
We're actively working on a solution for this. |
This should be addressed by our RC2 release. Thanks for the patience. |
Hi @khouzam , On my testing app, after clicking on a button, a small window likes popup/alert (with an OK button) is displayed. I'm able to click on the OK button, but not able to check whether other element/text on that small window is there or not. As per my experience with Selenium, we probably need to switch to the popup/alert or even have a particular method to verify/get stuff on the mentioned small window. |
Hi @watarus-nt, You would only need to switch to the popup window when it is indeed a separate window from the main application window (separate UI tree). In the Chrome example above, the popup window is part of the same main application window and therefore it belongs to the same UI tree. Since you can get to the OK button on the popup using the main window, the popup window you see is very likely part of the same UI tree. Therefore, you shouldn't need to switch to it. You can use the PageSource command to dump the UI tree of your app or use the inspect tool to verify that this other element/text is part of the UI tree of the application. Once you find it, you can locate it using any of the supported locators. |
Thanks @timotiusmargo for your comment. |
Hi @khouzam @yodurr @timotiusmargo I can confirm that the RC2 version is now identifying the Chrome Authentication pop up dialog.
Out of curiosity I tried for Firefox Authentication Pop up as well, and I can see those elements in Page Source. Thanks for prioritizing this one! |
Thanks for the validation, @dhapolapankaj, happy to see that it works! |
@dhapolapankaj I also had similar issue in my application, after clicking on button notepad window used to get opened and was not able to move focus from my application to notepad. Now issue is resolved I am able to perform actions in notepad window also and again switching back to my application. |
Hello @yodurr and Team,
I was trying to fill userid and password for an authentication Pop up displayed by Chrome browser
I see that Inspect tool was able to recognize the edit boxes but when I tried findElement using XPath those elements are not available.
I checked the Page Source, these elements are not available.
Below is the Page Source
I even tried finding all child elements using XPath i.e. ".//*"
Below is the chunk of code
Below is the output I have got.
Can anyone provide any input about this discrepancy?
Do we have any workaround for this?
The text was updated successfully, but these errors were encountered: