Recommendation about the code construction
问题 I have tried to automate the login with Katalon Studio and Selenium|testNG. I have used XML file to send the browser value to the script, which I have pasted here. public class TC_Testportal { private WebDriver driver; private String baseUrl; @Parameters("browser") @BeforeMethod public void beforeMethod(String browser) { if (browser.equals("firefox")) { System.setProperty("webdriver.gecko.driver", "drivers\\geckodriver.exe"); driver = new FirefoxDriver(); baseUrl = "https://test.com"; driver