FitnesseFor Appian

Hi All,

I have a button before my login page which is nothing but a certificate page . I just want to click that button{I Agree} and proceed to my login screen . Here is my error and script . Please help!!

2016-12-15 16:42:14,473 [main] DEBUG com.appiancorp.ps.automatedtest.tempo.interfaces.TempoButton - WAIT FOR BUTTON [I Agree]
2016-12-15 16:43:15,098 [main] ERROR com.appiancorp.ps.automatedtest.exception.ExceptionBuilder - Wait for Button - I Agree
org.openqa.selenium.TimeoutException: Timed out after 60 seconds waiting for presence of element located by: By.xpath: //button[contains(translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'i agree') and not(contains(@class, 'button-disabled'))]
--------------------------------------------------------------------------------
Script:-
!*** CLick on AGree and go to login page
!| script |
|set timeout seconds to|60 |
|click o...

OriginalPostID-253067

  Discussion posts and replies are publicly visible

Parents
  • The problem here is FitNesse is not able to Identifying the I Agree button. This happens some times that the object's Xpath cannot be identified in typical cases. In this case its not very complex, its a simple button that is unique through out the web page that is currently displayed.
    Anushri, the I Agree button is displayed in popup to the User? If yes Does FitNesse handle popup button. I haven't worked on that. Will do.
    The below may be already verified please do check if you missed any.
    1.Try executing manually, please note time taking to display the page completely(this includes visible of I Agree button), Add the above noted Wait time+15 seconds in the Script.
    2.Please check the Page/URL that is currently under the Test(while performing click action on I Agree button). Are you on the same page while the below script is running(This looks silly but worth checking)
    !*** CLick on AGree and go to login page
    !| script |
    |set timeout seconds to|60 |
    |click on button |I Agree|
    ***!
Reply
  • The problem here is FitNesse is not able to Identifying the I Agree button. This happens some times that the object's Xpath cannot be identified in typical cases. In this case its not very complex, its a simple button that is unique through out the web page that is currently displayed.
    Anushri, the I Agree button is displayed in popup to the User? If yes Does FitNesse handle popup button. I haven't worked on that. Will do.
    The below may be already verified please do check if you missed any.
    1.Try executing manually, please note time taking to display the page completely(this includes visible of I Agree button), Add the above noted Wait time+15 seconds in the Script.
    2.Please check the Page/URL that is currently under the Test(while performing click action on I Agree button). Are you on the same page while the below script is running(This looks silly but worth checking)
    !*** CLick on AGree and go to login page
    !| script |
    |set timeout seconds to|60 |
    |click on button |I Agree|
    ***!
Children
No Data