I am needing to find a way to update my URL in my python file used for python testing. Every time a new build is released the URL increments, i.e. build1.test.com, build2.test.com.
Is there a way to automatically update this URL to increment up when the new build is released?
import unittest
from page import *
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class LoginTest(unittest.TestCase):
def setUp(self):
self.driver = webdriver.chrome()
self.driver.get("https://build10.test.com")