Forum Discussion

delito's avatar
delito
Occasional Contributor
4 years ago
Solved

Chrome Login popup not detected

TestComplete

Version: 15.31.374.7 x64

Browser: Chrome Version 99.0.4844.51 (Official Build) (64-bit)

Running: Locally

 

Issue:

I've been using the below piece of code for 6+ months and occasionally it fails and will not identify the login fields to populate the username and password, is there a better more reliable way to handle this ?

 

 

 

 

 

 

 

 

        if(page.WaitLogin(3000).Exists)
        {
          Aliases.browser.pageSignOut2.Login.UserName = Project.Variables.Username;
          Aliases.browser.pageSignOut2.Login.Password = Project.Variables.Password;
          Aliases.browser.pageSignOut2.Login.buttonOk.Click()  
       }  

 

 

 

 

 

 

Ive also tried the below which has occasionally worked but at the moment its not.

 

 

 

 

 

      if(page.WaitLogin(3000).Exists)
        {
//          Aliases.browser.pageSignOut2.Login.textboxUsername.Keys(Project.Variables.Username);
//          Aliases.browser.pageSignOut2.Login.textboxPassword.Keys(Project.Variables.Password);
//          Aliases.browser.pageSignOut2.Login.buttonOk.Click()
         
       } 

 

 

 

 

 

 

  • Prajakta1,

     

    Please check the following to see if this resolves your PerForce issue:

     

    This issue usually occurs in the system where the Perforce command-line client (p4) is not added to the environment path. Try to follow the steps below:

    1. In the P4v client, select "Tools | Manage custom Tools | SmartBear - Add to Review" and click "Edit".
    2. In the "Arguments" field, add the "--p4 your_current_path_to_p4" option after "--scm perforce".
    Note: Don't change any other options.
    3. Click "OK", restart the P4v client, and try to reproduce the issue.

     

    If the issue still persists after following the steps above, ensure that the path to the "ccollabgui" file in the "Application" field of the "Edit Custom Tool" menu is correct, too. 

4 Replies

  • delito 

     

    Can you tell me what type of error message you are seeing when this code does not work?

     

    Thanks, 

    Emma

    • delito's avatar
      delito
      Occasional Contributor

      Hi ebarbera

       

      There is no error related to the popup, it just passes over the if statement and doesn't enter it then eventually fails on the next element as the screen hasn't progressed.

       

      If I take away the if statement and let it move onto the username it ends up with the below error:

      Unable to find the object Login.  - The object with the specified attributes does not exist.

       

       

      page.Login.UserName = Project.Variables.Username;
      page.Login.Password = Project.Variables.Password;
      page.Login.buttonOk.Click()

       

       

  • delito's avatar
    delito
    Occasional Contributor

    Hi, it seems this issue was resolved in Version: 15.40.421.7 x64 as after I updated its back working again, without any changes to scripts. Out of curiosity I then ran the same code on the VM which failed for the same issue originally reported so I logged into the VM and updated TestClient, now the runs from DevOps are working again, thank you.