ContributionsMost RecentMost LikesSolutionspython selenium all test in one browser class Login(unittest.TestCase): @classmethod def setUpClass(cls): cls.browser = webdriver.Chrome() def setUp(self): self.browser.get("www") username = self.browser.find_element_by_id("username") password = self.browser.find_element_by_id("password") username.send_keys("aaaa") password.send_keys("ssswww") self.browser.find_element_by_id("button").click() def tearDown(self): self.browser.get("about:blank") @classmethod def tearDownClass(cls): cls.browser.quit() When I have log, because I must log in every class (10) My class with test is similar for example: class Test1(Login): my code with test step And now I understand, the import pytest from selenium import webdriver @pytest.fixture(scope='module') def driver(): d = webdriver.Chrome() yield d d.quit() For example test class: (I understand that I have to place login in one of the test classes) Selenium class Test1: def test_google(self, driver): driver.get('https://google.com') driver.get("www") username = driver.find_element_by_id("username") password = driver.find_element_by_id("password") username.send_keys("aaaa") password.send_keys("ssswww") driver.find_element_by_id("button").click() class Test2: #in new file def function(self, driver): And Test3, Test4 ... Test10. And because I do everything in one browser, I do not have to log in anymore?How to query Salesforce Report with perl I have a report inSalesforcethat returns just the right information that is needed - (A long list of customer URLs and some more info columns for each url). I also have aPerlscript that goes over csv files and fills in missing information next to each URL. What I Need: 1) For thePerlscript to automatically query the report and get the most updated information before each run. What I Tried: 1) WWW::Salesforce::Report Cpan Module - apparently is has unresolved login bugs for 5+ years and is no longer supported. 2) WWW::Salesforce::Simple CpanModule- This module allows me to run basic queries ( select Id from Account - from examples) but I can't seem to find the correct query. I cant even find the names of objects in my Salesforce account. What is the correct way to get info from the Salesforce report and in case it is option 2, how can I get the correct object names and/or export the query Salesforce uses for the report?