I have a project where I always need to change the same values (cut them out):
<a class="sc-chPdSV iZXvhe sc-htpNat gEZjyJ" type="submit" name="audio-download" href="http:///www.website.com/get_audio/?session_token=6355f60252138cfd6.7872112701&analytics_tier=undefined&r=us-east-1&game=0&language=de&d=1" target="_blank">Geräusch als Audio-Datei herunterladen</a>
I need to change of this code before clicking it:
de&d=1
to
en
and
target="_blank"
to
target=""
javascript
andselenium
. There is no Python code in your question either. See stackoverflow.com/help/minimal-reproducible-example and stackoverflow.com/help/how-to-ask first. – Twink