Created
November 21, 2012 01:02
-
-
Save patrickhammond/4122384 to your computer and use it in GitHub Desktop.
Brazenhead issues while trying to invoke the action bar home button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: View the navigation menu | |
When I expose the navigation menu | |
{"exception":"java.lang.reflect.InvocationTargetException","theCause":{"exception":"java.lang.NullPointerException"}} (Exception) | |
./features/step_definitions/screenshot_defs.rb:12:in `/^I expose the navigation menu$/' | |
features/screenshots.feature:8:in `When I expose the navigation menu' | |
Then I can take a screenshot of the "navigation menu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When /^I expose the navigation menu$/ do | |
# @driver.clickOnActionBarHomeButton # Doesn't work...NPE | |
# @driver.clickOnActionBarHomeButton({:target => 'Robotium'}) #Doesn't work...NPE | |
# @driver.click_on_action_bar_item('android.R.id.home') # Doesn't work...string vs res int | |
# @driver.click_on_action_bar_home_button() #Doesn't work...NPE | |
@driver.click_on_action_bar_home_button #Doesn't work...NPE | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated BrazenHead com.leandog.brazenhead.commands.CommandRunner method to dump informative information to logcat.
public void execute(final Command... commands) throws Exception {
clearLastRun();