If the undertaker of such bridge and the owner of such materials cannot agree upon the sum to be paid for the damages, which may be done by the taking of such materials, such damages shall be ascertained in the manner provided in the case of materials taken by the supervisors of the public roads.
16 P.S. § 8502