You are reusing this DataProvider so maybe you could move it to seperate file in DataProvider package? I see you're using url builder which is not accessible in DataProvider class, we solved this case in ads tests, please check ths test: https://github.com/Wikia/selenium-tests/blob/master/src/test/java/com/wikia/webdriver/TestCases/AdsTests/TestAmazonAds.java .