def setup(self) :
        testing.wait_with_timeout(delay=8)

        # First change the viewport size so that all browsers get the
        # same results.
        scriptToExecute = "$('.renderers').parent().css('width', '350px').css('height', '350px')"
        self.window.execute_script(scriptToExecute)
        testing.wait_with_timeout(delay=1)

        clickPanel = self.window.find_element_by_css_selector(".mouse-listener")
        clickPanel.click()
        testing.wait_with_timeout(delay=1)
Exemplo n.º 2
0
    def setup(self):
        testing.wait_with_timeout(delay=8)

        # First change the viewport size so that all browsers get the
        # same results.
        scriptToExecute = "$('.renderers').parent().css('width', '350px').css('height', '350px')"
        self.window.execute_script(scriptToExecute)
        testing.wait_with_timeout(delay=1)

        clickPanel = self.window.find_element_by_css_selector(
            ".mouse-listener")
        clickPanel.click()
        testing.wait_with_timeout(delay=1)
Exemplo n.º 3
0
    def setup(self):
        testing.wait_with_timeout(delay=8)

        startButton = self.window.find_element_by_css_selector(".run-tests")
        startButton.click()
    def setup(self) :
        testing.wait_with_timeout(delay=8)

        # First change the viewport size so that all browsers get the
        # same results.
        # $(".viewport-container").css("width", "350px").css("height", "350px")
        scriptToExecute = "$('.renderers').parent().css('width', '350px').css('height', '350px')"
        self.window.execute_script(scriptToExecute)
        testing.wait_with_timeout(delay=1)

        # Click on the "Open file" icon to start the process of loading a file
        filesDiv = self.window.find_element_by_css_selector(".action.files")
        filesDiv.click()
        testing.wait_with_timeout(delay=1)

        # Click on the "can" link to load some paraview data.  We have the
        # expectation here that the paraview data dir with which we started the
        # server points to the "Data" folder in the standard ParaViewData git
        # repo.
        canLi = self.window.execute_script("return $('.vtk-files.action:contains(can.ex2)')[0]")
        canLi.click()
        testing.wait_with_timeout(delay=3)

        # Now choose how to color the object
        colorByLink = self.window.find_element_by_css_selector(".colorBy.color")
        colorByLink.click()
        testing.wait_with_timeout(delay=1)

        colorByDispLi = self.window.find_element_by_css_selector(".points[name=DISPL]")
        colorByDispLi.click()
        testing.wait_with_timeout(delay=1)

        # Jump to the final time step
        endTimeLi = self.window.find_element_by_css_selector(".action[action=last]")
        endTimeLi.click()
        testing.wait_with_timeout(delay=1)

        # Rescale now that we're at the final time step
        rescaleIcon = self.window.find_element_by_css_selector(".rescale-data")
        rescaleIcon.click()
        testing.wait_with_timeout(delay=1)

        # Now click the resetCamera icon so that we change the center of
        # rotation
        resetCameraIcon = self.window.find_element_by_css_selector("[action=resetCamera]");
        resetCameraIcon.click()
        testing.wait_with_timeout(delay=1)
    def setup(self) :
        testing.wait_with_timeout(delay=8)

        startButton = self.window.find_element_by_css_selector(".run-tests")
        startButton.click()