@@ -0,0 +1,1475 @@
+# -*- coding: utf-8 -*-%0Afrom selenium_tests.UserDriverTest import UserDriverTest%0Afrom selenium.webdriver.common.by import By%0Afrom selenium.webdriver.common.keys import Keys%0A%0A%0Aclass TestShareApplication(UserDriverTest):%0A    def test_share_modal(self):%0A        with self.running_container():%0A            self.open_application_settings()%0A%0A            self.click_first_element_located(By.ID, %22share-button%22)%0A%0A            self.click_modal_footer_button(%22Close%22)%0A%0A    def test_share_button(self):%0A        with self.running_container():%0A            self.open_application_settings()%0A%0A            self.click_first_element_located(By.ID, %22share-button%22)%0A%0A            self.click_first_element_located(By.ID, %22cp-clipboard-button%22)%0A%0A            # Now the share url should be in the clipboard%0A            input_element = self.driver.find_element_by_id(%22shared-url%22)%0A%0A            # Clear the input element and paste what is in the clipboard in%0A            # order to retrieve it (lacking better way to retrieve the clipboard%0A            # value)%0A            input_element.clear()%0A            input_element.send_keys(Keys.CONTROL, 'v')%0A            clipboard_value = input_element.get_attribute(%22value%22)%0A%0A            # Go to the shared url%0A            self.driver.get(clipboard_value)%0A            self.wait_until_presence_of_element_located(By.ID, %22noVNC_screen%22)%0A%0A            # Go back to simphony-remote%0A            self.driver.back()%0A            self.wait_until_application_list_loaded()%0A

Add tests for the share button