Yorkshire captain rides his luck before young quick lands the crucial blow