Section 6. Any company, now or hereafter incorporated under the provisions of the act to which this is a supplement, shall have the right to cross at grade, either at right angles or transversely, any street passenger railway that is now or may hereafter be built, and also to connect their railway with that of any other street passenger railway, now or hereafter constructed in any city of the second or third class, upon such terms and conditions as may be agreed upon between such companies; but if such companies cannot agree upon terms, then either company may present its petition to the court of common pleas of the proper county, setting forth the facts and its purpose to cross or connect such tracks, and praying the court to appoint viewers to assess the damages for such crossing or connection. Thereupon, the court shall appoint three disinterested persons as viewers, who, at a time to be fixed by the court, of which notice shall be given to the companies, shall view the point at which the tracks are to be crossed or connected, and, after hearing evidence, report what sum of money, if any, shall be paid for actual damages, by reason of such crossing or connection. This report the court may approve, or set aside and appoint new viewers, and from the decision court within ten days either side may appeal, and demand a jury trial; judgment shall be entered upon the report, if not appealed from, or on verdict when rendered, with the right of execution for damages and costs, with the same rights to a writ of error as now provided in similar cases. The company, proposing to cross or connect such tracks, may file a bond, with sureties to be approved by the court, conditioned to pay all damages assessed against it, and after filing said bond may proceed to cross or connect such tracks.