Jump to content

Recommended Posts

Hey there, 

I'm scripting a routine which opens and moves a lot of chrome-tabs on a Video-Wall. It uses the "Open-as-Popup" addon in Chrome to hide the browser-bar (therefore i cant usse IE).

On Some Sites a login is required. On Most of them i can use the "Title" information to figure out if the brwoser is already loged in or not because the login Page has another title than the target page.

Func Chrome_Boot()

   Run("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe http://www.example1.de/page1")
   Sleep (5000)

   If WinExists ("loggedinTabName - Google Chrome","") Then
      WinActivate("loggedinTabName  - Google Chrome")
      ;do nothing
   ElseIf WinExists ("NOTloggedinTabName - Google Chrome","") Then
      WinActivate("NOTloggedinTabName - Google Chrome")
      Send ("loginName{TAB}")
      Send("loginPW{Enter}")
   Else
      MsgBox($MB_RETRYCANCEL, "Whoops", "something went wrong")
      MyExit()
   EndIf
   
   Send ("!0")
   WinMove ( "loggedinTabName", "", 3855, 729 , 1272 , 720 ,5 )
EndFunc

But on some sites when not logged in there only appears this Chrome-Popup:

chrome_login.thumb.png.5d13738ab3c88eda9d97c4459954bd8b.png

Is there any Way i can check if this login Screen apears or not ? 

 

Thanks in advance

Share this post


Link to post
Share on other sites

Hello. Seems to be It uses basic access authentication so you could probably avoid the Popup passing credentials in the url like:

https://username:password@www.example.com/

Saludos

Share this post


Link to post
Share on other sites
On 1/21/2020 at 12:33 PM, Danyfirex said:

Hello. Seems to be It uses basic access authentication so you could probably avoid the Popup passing credentials in the url like:


https://username:password@www.example.com/

Saludos

That sadly didn't work.... it would have been so sweet tho :D

Share this post


Link to post
Share on other sites
On 1/22/2020 at 6:56 AM, CYCho said:

 

 

@thommy_blank I had similar problem and I had to resort to Webdriver UDF to solve the problem.

You can visit the following posts to learn about Webdriver UDF.

 

 

I guess i have to give that a try and learn some new stuff.

Thanks for the help :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...