jeudi 28 juin 2018

Extract data from a URL to use in a selenium test

I am testing a football betting website currently. In this website there is a different game every day. So each game has a different id in the URL. An example of this would be https://web-game-stage.sportgames.com/games/5b310f8967ef5ad461d75aef/ so the 5b310f8967ef5ad461d75aef is the game id. How can i extract this code from the URL and basically just make it a string??

Aucun commentaire:

Enregistrer un commentaire