Testing of web application is a very important step in the software development life cycle. Selenium has been the conventional automation tool of browsing years. But with the increasing complexity of web technologies, older Selenium test suites tend to be slow, prone to timeouts and with a high maintenance cost. Contemporary solutions such as Playwright are more reliable and parallel, and faster. In spite of these benefits, companies are slow to upgrade since the thousands of legacy Selenium code would be impossible to re-write by hand, which would cost them an enormous amount of time and company resources. To address this bottleneck, this paper presents a viable scheme of the automated conversion of outdated Selenium examination suites into Playwright. This proposed system is based on a refactoring engine which, given a script, automatically converts Selenium-specific elements like locators, explicit waits, and browser actions to the equivalent Playwright elements. We evaluated this framework by mapping a sample collection of conventional web application tests. The original Selenium scripts as well as the generated Playwright scripts have been run in the same environments. We monitored the execution time, memory usage and script stability. Also, we have performed a quantitative Return on investment (ROI) analysis to convert these technical measurements into real business value. We estimated the specific savings of cloud server expenses by accelerating the speed of the tests and the developer time by removing the manual translation process. The findings indicate that there is a severe decrease in the total test run time and the amount of engineering effort needed to implement the migration. Finally, this study offers software teams with a very useful, cost-efficient design of the updated testing infrastructure which would save them a lot of money on long-term maintenance and would help to deliver software faster.
Amit Kumar Gupta (Wed,) studied this question.