Skip to content
Advertisement

Appium – Pick Two days after a specific day of month

I am trying to pick two days after the current day of month. In my StepImplementation class, i wrote a function like this but it gives me an error:

JavaScript

For my String day parameter, it shows me this error: Parameter count mismatch(found 1 expected 0) with step annotation : ‘pick two days after current day’

Basically, i am trying to pick a date for a flight from datepicker. I have to pick two days after the current day of month but i got a little bit confused.

Thanks for your help.

Advertisement

Answer

I wrote another method and works like a charm now:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement