としたが

tried to … but

→ と
phrase Common #7,731
tried to … but Usually follows a verb in its volitional form, as in ようとしたが. The が means “but.”
JA: 窓を開けようとしたが、開かなかった。
EN: I tried to open the window, but it wouldn’t open.

ミーチャは待ち続けて…それからウクライナに戻ろうとしたが

Mitya kept waiting... and then tried to return to Ukraine, but...

— Брат 2 (2000)

彼女は髪を切ってもらいに行こうとしたが、お母さんが許してくれなかった。

She tried to go get a haircut, but her mother wouldn’t let her.

本を読もうとしたが無理だった

I tried to read the book, but I couldn't.

— プラットフォーム (2019)

戸を開けようとしたが、鍵がかかってだめだった。

I tried to open the door, but it was locked.

図書館を見つけようとしたが道に迷ってしまった。

I tried to find the library, but I got lost.

彼はその鳥を捕まえようとしたが、出来なかった。

He tried to catch the bird, but he couldn't.

フレッドはドアのところへ行こうとしたがテーブルが邪魔になった。

Fred tried to get to the door, but the table was in the way.