Class EntityDiff


  • public class EntityDiff
    extends BaseElement
    Represents the pane that displays the differences between two versions of an entity (e.g. document, attachment, object, class property). For each modified property of the target entity a unified diff is displayed (e.g. the diff for the document title, attachment content or a meta property of a class property).
    Since:
    7.0RC1
    Version:
    $Id: 04f799bbbdb0c628bd06fa92e803d79090d4b78f $
    • Constructor Detail

      • EntityDiff

        public EntityDiff​(org.openqa.selenium.WebElement container)
        Create a new instance for the entity specified by the given element.
        Parameters:
        container - The element that wraps and contains the changes for all the entity's properties.
    • Method Detail

      • getPropertyNames

        public List<String> getPropertyNames()
        Returns:
        the list of properties that have been modified
      • getDiff

        public List<String> getDiff​(String propertyName)
        Parameters:
        propertyName - the name of a modified property of the underlying entity
        Returns:
        the changes made to the specified property (each item in the returned list is a line in the diff)
      • getConflicts

        public List<Conflict> getConflicts​(String propertyName)
        Parameters:
        propertyName - the name of a modified property of the underlying entity
        Returns:
        the list of conflicts displayed in that diff.