Swansea City will play Malmo or Hibernian in the Europa League third qualifying round.
Swedish side Malmo beat Scotland's Hibernian 2-0 in the second qualifying first leg on Thursday.
Swansea will be at home to the winners in the first leg on Thursday, 1 August with the second leg a week later.
The Swans, who were seeded for the draw, will be competing in European competition for the first time since 1991.
Michael Laudrup's side qualified for the Europa League after winning last season's Capital One Cup.
The winners of the third qualifying round ties will enter the draw for the play-offs, which will be held on Friday, 9 August.
Welsh Cup winners Prestatyn Town will face Olimpija Ljubljana of Slovenia or Slovakia's MSK Zilina in the third qualifying round in the unlikely event they overcome Rijeka.
Prestatyn's hopes of progressing look all but over after they lost 5-0 to the Croatian side in the first leg of their second qualifying round tie.
In the Champions League, The New Saints or Legia Warsaw will face Sligo Rovers or Molde of Norway in the third qualifying round.
The Welsh Premier League champions trail the Polish side 3-1 following the second qualifying round first leg at Wrexham's Racecourse.