Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frankly_screenshot crashes the app #52

Open
jamehta opened this issue May 19, 2016 · 0 comments
Open

frankly_screenshot crashes the app #52

jamehta opened this issue May 19, 2016 · 0 comments

Comments

@jamehta
Copy link

jamehta commented May 19, 2016

We have a textfield which we tap on in our cucumber functional test step and so keypad shows up.

we take screenshot after every step (int the after step hook) using this line:

frankly_screenshot("#{screenshot_file}”)

But when we have a number keyboard shown on tapping the textfield, above line crashes the app.

Screenshots works fine with all other cucumber steps , only it crashes at cases where we have number keyboard shown due to tap on text field.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant