Forum Discussion

Jaime's avatar
Jaime
Occasional Contributor
3 years ago
Solved

Why is a web menu selection object not recognized during Jenkins cloud run?

Using TestComplete to test a webpage.  During the test, it selects a selection menu, selects a value and finishes the run successfully.  Every time I run this same test via Jenkins CI/CD, I continue to get the same error, that the selection value object does not exist.  Here is my code in JavaScript.  It is the last line of the code that fails via cloud run. Again, every time it is executed locally it runs successfully recognizing the object.  Any ideas???  Thanks!

 

//employeeStatus
let buttonES = browser.pageHomeSalesforce2.textnodeEmployeeStatus;
buttonES.scrollIntoView();
Delay(4000)
buttonES.buttonEmployeeStatus2.ClickButton();
Delay(4000)
buttonES.textnodeInactive.Click();

  • I fixed this!  I needed to hit the selection menu twice.  Once to have focus, and the second time, to make the selection!

2 Replies

  • Jaime's avatar
    Jaime
    Occasional Contributor

    I fixed this!  I needed to hit the selection menu twice.  Once to have focus, and the second time, to make the selection!

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you so much for sharing the solution, Jaime!