fdutils/selenium_util/__init__.py
def screenshot_before_after(self, file_name='', folder_path=''):
        """ gets a screen shot before and after a with context

        Args:
            file_name: name of file (it will be suffixed with _before and _after). if not given we will use the title of the page
            folder_path: folder path where to store the images

        Returns:

        """
        folder_path = folder_path or self.screen_shot_folder
        file_path = os.path.join(folder_path, file_name)

        self.get_screenshot(files.get_filename_suffixed(file_path, 'before'))
        yield
        self.get_screenshot(files.get_filename_suffixed(file_path, 'after'))
 gets a screen shot before and after a with context

        Args:
            file_name: name of file (it will be suffixed with _before and _after). if not given we will use the title of the page
            folder_path: folder path where to store the images

        Returns:

        
gets a screen shot before and after a with context
gets a screen shot before and after a with context
def screenshot_before_after(self, file_name='', folder_path=''):
        folder_path = folder_path or self.screen_shot_folder
        file_path = os.path.join(folder_path, file_name)
        self.get_screenshot(files.get_filename_suffixed(file_path, 'before'))
        yield
        self.get_screenshot(files.get_filename_suffixed(file_path, 'after'))
def screenshot_before_after ( self , file_name = '' , folder_path = '' ) : folder_path = folder_path or self . screen_shot_folder file_path = os . path . join ( folder_path , file_name ) self . get_screenshot ( files . get_filename_suffixed ( file_path , 'before' ) ) yield self . get_screenshot ( files . get_filename_suffixed ( file_path , 'after' ) )
gets a screen shot before and after a with context
gets a screen shot before and after a with context
""" gets a screen shot before and after a with context

        Args:
            file_name: name of file (it will be suffixed with _before and _after). if not given we will use the title of the page
            folder_path: folder path where to store the images

        Returns:

        """
None
self
file_name
name of file (it will be suffixed with _before and _after). if not given we will use the title of the page
name of file ( it will be suffixed with _before and _after ) . if not given we will use the title of the page
folder_path
folder path where to store the images
folder path where to store the images