Skip to content

frankly_screenshot crashes the app  #52

@jamehta

Description

@jamehta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions