-
Notifications
You must be signed in to change notification settings - Fork 681
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
popup() with SSO authentication scheme - pending checks and more details #311
Comments
Hi @Lamarche-Lam it sounds like you want to automate on the popup tab with URL ending with
|
Hi @kensoh , Not really...
What I actually want to say was
the urls were made up but the behaviour of them were well reflected. Thank you. |
I see... Then usage would be like the following - If you mean after loading http://123.456.12.34:3455/hub/account/sso the webpage automatically redirects to http://123.456.12.44:3499/company/page/main.jsp, then use r.popup('main.jsp'). If you require some manual 2FA action on http://123.456.12.34:3455/hub/account/sso before going to main.jsp, you may want to do a r.wait() for some time to allow you to manually click. Lastly, if you are planning to automate the clicking to go from sso to main.jsp page, then you can use r.popup('sso') to automate on that page. |
It meets the description of the first scenario but RPA returns error saying it cannot find the popup tab with the url ended with 'main.jsp'. |
Oh I see... Can you check this, print(r.tagui_location()). In that folder, there is a tagui or .tagui folder depending on your OS. Then inside there is src\tagui_chrome.log. Can you attach the log file here? It will show the messages from Chrome. |
Ohoh, I forgot to mention this. It seemed that the getTarget method not function properly.
It showed the url of popup tab first and then the url of main tab.
In addition, strings like "attached", "openderId", "canAccessOpener", "openerFrameId", "browserContextId" were missing out. the urls were made up but the behaviour of them were well reflected. |
Not sure if above are the real URLs or dummy URLs because no mention of If the popup URL is |
Adding on to above suggestion, are you able to tell what difference this popup compared to other popups? Is it look different or the way it appear is special? I don't understand why Chrome responds differently in your logs. |
Hi @kensoh , These urls from the chrome log were made up, they were not the real urls I encounted with. I just used them as an example to illustrate the problems. The main tab was the "join github" page. but in my case, the main tab was http://123.456.12.34:3455/hub/ |
The only difference, I think, the urls of the main tab and the popups in my case was that thery were all internal urls (I worked for a financial entity so everthing i did was in an isolated enviroment) and they were all constructed as some string like ip:port/xxx/xxx/. |
I see.. Can you share the full tagui_chrome.log for r.popup('main.jsp')? Without the full logs to see what is Chrome's response, and without access to your system, I can't think of ways to troubleshoot the problem. Alternatively you can use visual automation and keyboard automation to automate on the new tab, see here - https://github.com/tebelorg/RPA-Python#visual-automationsee_no_evil |
Sorry… I cannot provide you the log file at the moment since due to company’s policy. I would try something else based on you suggestion. Thank you for helping me. |
Oh yes, I suspect that is the case. Sure, I hope visual and keyboard automation works for you. It is very easy to use, just that native web automation is more powerful (especially for reading data). |
Do see this section on element identifiers to understand more on visual automation - |
Definitely will try :) |
Hello everyone,
I'm currently working on a script to download contents from the enterprise mail automatically since we need to generate reports from the downloaded contents.
One of our mailbox uses SSO scheme for authorisation purpose and it runs as stated in the following:
Alternative trial: I've tried r.vision() to send command visually but because of the computer was reinstalled by IT dept. following specific requirements, complex SikuliX command would shut the engine down leaving the whole process wait endlessly...so negativ.
Is there a solution to this? Any help would be appreciated.
Best,
Lamarche
The text was updated successfully, but these errors were encountered: