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
  • You could create fixtures that would be custom functions to use in scenarios in Fitnesse. Scenario libraries can also be used to set up common test cases and re-use them. Hopefully that helps.

    Another thing you can do for this case if you are unsure about what is happening on the page is take a screenshot right after the timeout that you have built in the code.

    |take screenshot |<name_of_screenshot_file>|

    If you have the screenshot folder configured and know where it's located you can take a look at the screenshot taken to compare to what you believe should be happening.
Reply
  • You could create fixtures that would be custom functions to use in scenarios in Fitnesse. Scenario libraries can also be used to set up common test cases and re-use them. Hopefully that helps.

    Another thing you can do for this case if you are unsure about what is happening on the page is take a screenshot right after the timeout that you have built in the code.

    |take screenshot |<name_of_screenshot_file>|

    If you have the screenshot folder configured and know where it's located you can take a look at the screenshot taken to compare to what you believe should be happening.
Children
No Data