def test_MessageTemplateOption(self):
     try:
         browserInstance = setupValue()
         adminfunction=Adminclass()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         logOut=Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin1(browser)
         adminfunction=Adminclass()
         adminfunction.NotificationMessages(browser)
         time.sleep(3)
         browser.find_element_by_link_text(orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','MessageLinkSelection')).click()
         time.sleep(3)
         rValue=str(orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','MessageLinkSelection'))
         TextMessage ='Notification message '+'-'+' '+rValue
         self.assertTrue(TextMessage in browser.page_source)
         self.assertTrue('User' in browser.page_source)
         self.assertTrue('Organisation' in browser.page_source)
         self.assertTrue('Project' in browser.page_source)
         self.assertTrue('Tender' in browser.page_source)
     except Exception:
         logs.error("Validation with Test Case No: 100082 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100082 failed")
         browser.implicitly_wait(5)
     finally:
         browser=logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Exemplo n.º 2
0
 def test_duplicatetagverification(self):
     try:
         browserInstance = setupValue()
         adminfunction = Adminclass()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         logOut = Userprofilemenu()
         browser = LauncheTender1.openURL(browser)
         browser = LauncheTender1.estimatorValidlogin(browser)
         orgInstance = Organizationclass()
         adminfunction.OpenTags(browser)
         fake = Factory.create()
         fakevalue = fake.name()
         tagString = str(fakevalue)
         adminfunction.TagCreation(browser, tagString)
         time.sleep(2)
         adminfunction.TagCreation(browser, tagString)
         message = str('Tag with name ' + '[' + tagString + ']' +
                       ' already exist')
         self.assertTrue(message in browser.page_source)
     except Exception:
         logs.error("Validation with Test Case No: 100178 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100178 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender1.closebrowser(browser)
 def test_FootNote(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(10)
         LauncheTender = LauncheTenderclass()
         TenderAction = TenderClass()
         adminfunction = Adminclass()
         logOut = Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin1(browser)
         time.sleep(4)
         orgInstance = Organizationclass()
         orgInstance.OpenUserProfilePage(browser)
         time.sleep(2)
         browser.find_element_by_xpath(
             orgLink.readfromXML(
                 folder_path + '\Object\UserProfileObject.xml', 'eTender',
                 'SignatureBox')).clear()
         fakeValue = Factory.create()
         Signote = fakeValue.name()
         SignoteValue = str(Signote)
         browser.find_element_by_xpath(
             orgLink.readfromXML(
                 folder_path + '\\Object\\UserProfileObject.xml', 'eTender',
                 'SignatureBox')).send_keys(SignoteValue)
         sbutton = browser.find_element_by_xpath(
             orgLink.readfromXML(
                 folder_path + '\\Object\\UserProfileObject.xml', 'eTender',
                 'savebutton'))
         time.sleep(2)
         browser.execute_script("arguments[0].scrollIntoView(true);",
                                sbutton)
         time.sleep(2)
         sbutton.click()
         adminfunction.EmailSetup(browser)
         time.sleep(2)
         footnote = browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\\Object\\EmailSetup.xml',
                                 'eTender',
                                 'FootNote')).get_attribute('innerText')
         time.sleep(2)
         time.sleep(3)
         sfootnote = str(footnote)
         sfootnote = sfootnote.strip()
         self.assertEquals(SignoteValue, sfootnote)
         logs.info("Test Case No : 100355 Passed Successfully")
     except Exception:
         logs.error("Test Case No: 100355 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100355 failed")
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Exemplo n.º 4
0
 def test_SetupEmailPage(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(10)
         LauncheTender = LauncheTenderclass()
         TenderAction = TenderClass()
         logOut = Userprofilemenu()
         adminfunction = Adminclass()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin1(browser)
         time.sleep(3)
         adminfunction.EmailSetup(browser)
         time.sleep(2)
         self.assertTrue(
             browser.find_element_by_id(
                 orgLink.readfromXML(
                     folder_path + '\Data\EmailSetupData.xml', 'eTender',
                     'LogSelector')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Data\EmailSetupData.xml', 'eTender',
                     'CropImage')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Data\EmailSetupData.xml', 'eTender',
                     'Invitation')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Data\EmailSetupData.xml', 'eTender',
                     'ViewDetails')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Data\EmailSetupData.xml', 'eTender',
                     'ResetBtn')))
         self.assertTrue(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Data\EmailSetupData.xml', 'eTender',
                     'SaveBtn')))
         logs.info("Test Case No : 100361 Passed Successfully")
     except Exception:
         logs.error("Test Case No: 100361 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100361 failed")
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Exemplo n.º 5
0
    def test_MessageTemplateSave(self):
        try:
            browserInstance = setupValue()
            adminfunction=Adminclass()
            browser = browserInstance.setupfunction()
            LauncheTender = LauncheTenderclass()
            logOut=Userprofilemenu()
            browser = LauncheTender.openURL(browser)
            browser = LauncheTender.estimatorValidlogin1(browser)
            adminfunction=Adminclass()
            adminfunction.NotificationMessages(browser)
            time.sleep(3)
            browser.find_element_by_link_text(orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','MessageLinkSelection')).click()
            time.sleep(3)
            p=browser.find_element_by_class_name(orgLink.readfromXML(folder_path+'\Object\AdminEstimator.xml','eTender','TemplateTextBox'))
            p.clear()
            browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\AdminEstimator.xml','eTender','User')).click()
            time.sleep(1)
            browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\AdminEstimator.xml','eTender','Organization')).click()
            time.sleep(1)
            browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\AdminEstimator.xml','eTender','Project')).click()
            time.sleep(1)
            browser.find_element_by_xpath(orgLink.readfromXML(folder_path+'\Object\AdminEstimator.xml','eTender','Tender')).click()
            time.sleep(3)
            browser.find_element_by_link_text(orgLink.readfromXML(folder_path+'\Object\AdminEstimator.xml','eTender','SaveBtn')).click()
            time.sleep(2)
            browser.find_element_by_link_text(orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','MessageLinkSelection')).click()
            time.sleep(2)
            Nuser=str("["+orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','user')+"]")
            Norganization=str("["+orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','organization')+"]")
            Nproject=str("["+orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','project')+"]")
            Ntender=str("["+orgLink.readfromXML(folder_path+'\Data\AdminEstimatorData.xml','eTender','tender')+"]")
            time.sleep(2)
            self.assertTrue(Nuser in browser.page_source)
            self.assertTrue(Nuser in browser.page_source)
            self.assertTrue(Nuser in browser.page_source)
            self.assertTrue(Nuser in browser.page_source)

        except Exception:
            logs.error("Validation with Test Case No: 100181 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100181 failed")
            browser.implicitly_wait(5)
        finally:
            browser=logOut.logout_eTender(browser)
            LauncheTender.closebrowser(browser)
Exemplo n.º 6
0
 def test_tagdeletion(self):
     try:
         browserInstance = setupValue()
         adminfunction = Adminclass()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin(browser)
         orgInstance = Organizationclass()
         adminfunction.OpenTags(browser)
         logOut = Userprofilemenu()
         fake = Factory.create()
         fakevalue = fake.name()
         tagString = str(fakevalue)
         adminfunction.TagCreation(browser, tagString)
         time.sleep(3)
         adminfunction.TagDeletion(browser, tagString)
         time.sleep(2)
         message = str('Tag ' + tagString + ' has been deleted')
         self.assertTrue(message in browser.page_source)
         time.sleep(2)
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\AdminEstimator.xml',
                                 'eTender', 'TagNewSearchBox')).clear()
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\AdminEstimator.xml',
                                 'eTender',
                                 'TagNewSearchBox')).send_keys(tagString)
         try:
             browser.find_element_by_xpath(
                 browser.find_element_by_xpath(
                     orgLink.readfromXML(
                         folder_path + '\Object\AdminEstimator.xml',
                         'eTender', 'TagValue')))
         except NoSuchElementException:
             logs.info("Test Case No : 100122 Passed Successfully")
             return True
         return False
     except Exception:
         logs.error("Validation with Test Case No: 100122 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100122 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Exemplo n.º 7
0
    def test_AddUsernotification(self):
        try:
            browserInstance = setupValue()
            adminfunction = Adminclass()
            browser = browserInstance.setupfunction()
            browser.implicitly_wait(5)
            LauncheTender1 = LauncheTenderclass()
            logOut = Userprofilemenu()
            browser = LauncheTender1.openURL(browser)
            browser = LauncheTender1.estimatorValidlogin(browser)
            orgInstance = Organizationclass()
            orgInstance.OpenaddUser(browser)
            browser = orgInstance.AddUserOrganization(browser)
            browser.find_element_by_xpath(
                orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                    'eTender', 'saveButon')).click()
            adminfunction = Adminclass()
            adminfunction.OpenNotificationRecipients(browser)
            time.sleep(3)
            p = browser.find_elements_by_xpath(
                orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                    'eTender', 'emailrolebox'))
            time.sleep(2)
            p[1].send_keys(
                orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                    'userSaveEmail'))
            browser.find_element_by_xpath(
                orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                    'eTender', 'adduserCheckbox')).click()
            browser.find_element_by_xpath(
                orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                    'eTender', 'saveButon')).click()
            time.sleep(2)
            adminfunction.OpenTags(browser)
            adminfunction.OpenNotificationRecipients(browser)
            p = browser.find_elements_by_xpath(
                orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                    'eTender', 'emailrolebox'))
            p[1].send_keys(
                orgLink.readfromXML(folder_path + '\Data\Data.xml', 'eTender',
                                    'userSaveEmail'))
            time.sleep(2)
            self.assertTrue(
                browser.find_element_by_xpath(
                    orgLink.readfromXML(
                        folder_path + '\Object\AdminEstimator.xml', 'eTender',
                        'Usercheckbox')))

        except Exception:
            logs.error("Validation with Test Case No: 100170 failed")
            browser.save_screenshot(fullpath)
            traceback.print_exc(file=sys.stdout)
            self.fail("Test Case No: 100170 failed")
            browser.implicitly_wait(5)
        finally:
            browser = logOut.logout_eTender(browser)
            LauncheTender1.closebrowser(browser)
Exemplo n.º 8
0
 def test_TaskSchedulerReset(self):
     try:
         browserInstance = setupValue()
         adminfunction = Adminclass()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         logOut = Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin(browser)
         adminfunction.OpenTaskScheduler(browser)
         time.sleep(4)
         p = browser.find_elements_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\AdminEstimator.xml',
                                 'eTender', 'DueDateReminder'))
         DueValue = p[0].get_attribute('value')
         DueNewvalue = int(DueValue) + 1
         p[0].clear()
         p[0].send_keys(DueNewvalue)
         Acceptreminder = p[1].get_attribute('value')
         Acceptnewreminder = int(Acceptreminder) + 1
         p[1].clear()
         p[1].send_keys(Acceptnewreminder)
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\AdminEstimator.xml',
                                 'eTender', 'ResetButton')).click()
         time.sleep(4)
         p1New = browser.find_elements_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\AdminEstimator.xml',
                                 'eTender', 'TenderReminder'))
         DueValueLatest = p1New[0].get_attribute('value')
         AcceptLatest = p1New[1].get_attribute('value')
         self.assertNotEquals(int(DueValueLatest), DueNewvalue)
         self.assertNotEquals(int(AcceptLatest), Acceptnewreminder)
     except Exception:
         logs.error("Validation with Test Case No: 100180 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100180 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Exemplo n.º 9
0
 def test_newtagcreation(self):
     try:
         browserInstance = setupValue()
         adminfunction = Adminclass()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         logOut = Userprofilemenu()
         browser = LauncheTender1.openURL(browser)
         browser = LauncheTender1.estimatorValidlogin(browser)
         orgInstance = Organizationclass()
         adminfunction.OpenTags(browser)
         fake = Factory.create()
         fakevalue = fake.name()
         tagString = str(fakevalue)
         adminfunction.TagCreation(browser, tagString)
         time.sleep(2)
         message = str('Tag ' + tagString + ' has been created')
         self.assertTrue(message in browser.page_source)
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\AdminEstimator.xml',
                                 'eTender',
                                 'TagSearchBox')).send_keys(tagString)
         time.sleep(2)
         self.assertEquals(
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Object\AdminEstimator.xml', 'eTender',
                     'TagValue')).get_attribute('innerHTML'), tagString)
     except Exception:
         logs.error("Validation with Test Case No: 100177 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100177 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender1.closebrowser(browser)
 def test_MinimumUsernotification(self):
     try:
         browserInstance = setupValue()
         adminfunction = Adminclass()
         logOut = Userprofilemenu()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(5)
         LauncheTender1 = LauncheTenderclass()
         browser = LauncheTender1.openURL(browser)
         browser = LauncheTender1.estimatorValidlogin(browser)
         adminfunction = Adminclass()
         adminfunction.OpenNotificationRecipients(browser)
         time.sleep(3)
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                 'eTender', 'adduserCheckbox')).click()
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                 'eTender', 'checkboxSelectedAll')).click()
         browser.find_element_by_xpath(
             orgLink.readfromXML(folder_path + '\Object\Object.xml',
                                 'eTender', 'saveButon')).click()
         time.sleep(2)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'NotificationMessage') in browser.page_source)
         logs.info("Test Case No : 100171 Passed Successfully")
     except Exception:
         logs.error("Validation with Test Case No: 100171 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100171 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender1.closebrowser(browser)
Exemplo n.º 11
0
 def test_MessageOption(self):
     try:
         browserInstance = setupValue()
         adminfunction = Adminclass()
         browser = browserInstance.setupfunction()
         LauncheTender = LauncheTenderclass()
         logOut = Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin1(browser)
         adminfunction = Adminclass()
         adminfunction.NotificationMessages(browser)
         time.sleep(3)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageTenderUpdate') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageDuedate') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageTenderDeletion') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageDueDateReminder') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageNewRegist') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageAddUser') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageRoleUpdate') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageRemoveUser') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageTenderSubmit') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageTenderDecline') in browser.page_source)
         self.assertTrue(
             orgLink.readfromXML(
                 folder_path + '\Data\AdminEstimatorData.xml', 'eTender',
                 'MessageTenderAcceptance') in browser.page_source)
     except Exception:
         logs.error("Validation with Test Case No: 100082 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100082 failed")
         browser.implicitly_wait(5)
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)
Exemplo n.º 12
0
 def test_TenderReturnSaveVerify(self):
     try:
         browserInstance = setupValue()
         browser = browserInstance.setupfunction()
         browser.implicitly_wait(10)
         LauncheTender = LauncheTenderclass()
         TenderAction = TenderClass()
         adminfunction = Adminclass()
         logOut = Userprofilemenu()
         browser = LauncheTender.openURL(browser)
         browser = LauncheTender.estimatorValidlogin1(browser)
         time.sleep(3)
         adminfunction.GeneralSettings(browser)
         time.sleep(2)
         try:
             ButtonTrue = browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Object\GeneralSettings.xml', 'eTender',
                     'TenderReturnTrue'))
             ButtonTrue.click()
             browser.find_element_by_xpath(
                 orgLink.readfromXML(
                     folder_path + '\Object\GeneralSettings.xml', 'eTender',
                     'SaveBtn')).click()
             time.sleep(2)
             adminfunction.OpenTags(browser)
             adminfunction.GeneralSettings(browser)
             time.sleep(2)
             try:
                 browser.find_element_by_xpath(
                     orgLink.readfromXML(
                         folder_path + '\Object\GeneralSettings.xml',
                         'eTender', 'TenderReturnFalse'))
             except NoSuchElementException:
                 return False
         except NoSuchElementException:
             try:
                 ButtonFalse = browser.find_element_by_xpath(
                     orgLink.readfromXML(
                         folder_path + '\Object\GeneralSettings.xml',
                         'eTender', 'TenderReturnFalse'))
                 ButtonFalse.click()
                 time.sleep(2)
                 browser.find_element_by_xpath(
                     orgLink.readfromXML(
                         folder_path + '\Object\GeneralSettings.xml',
                         'eTender', 'SaveBtn')).click()
                 adminfunction.OpenTags(browser)
                 adminfunction.GeneralSettings(browser)
                 time.sleep(2)
                 try:
                     browser.find_element_by_xpath(
                         orgLink.readfromXML(
                             folder_path + '\Object\GeneralSettings.xml',
                             'eTender', 'TenderReturnTrue'))
                 except NoSuchElementException:
                     return False
             except NoSuchElementException:
                 return False
         logs.info("Test Case No : 100381 Passed Successfully")
         return True
     except Exception:
         logs.error("Test Case No: 100381 failed")
         browser.save_screenshot(fullpath)
         traceback.print_exc(file=sys.stdout)
         self.fail("Test Case No: 100381 failed")
     finally:
         browser = logOut.logout_eTender(browser)
         LauncheTender.closebrowser(browser)