Change appium methods duration variable name to be suggestive
Right now duration variable name is
durationInSeconds but the appium method take milliseconds. On some of the methods we multiply it with 1000 but on others not. Either change the name of the variable or multiply all the methods with 1000.
Also check if Java have the same problem