We have a textfield which we tap on in our cucumber functional test step.
we take screenshot after every step using this line: frankly_screenshot("#{screenshot_file}”)
But when we have a number keyboard shown on tapping the textfield, above line crashes the app.
Anybody who faced similar issue ?
Sample code:
AfterStep do |scenario|
def self.take_screenshot(file_name = "img")
time = Time.now.strftime("%F_%H-%M-%S")
screenshot_file = "Screenshots/" + "#{file_name}-#{time}.png"
frankly_screenshot("#{screenshot_file}")
screenshot_file
end