Buggy code:
private static final String COPY_THIS_LINK_TO_SHARE_THE_CURRENT_PAGE = "div.link-info<seq2seq4repair_space>input" ; private static final By QUICK_SHARE_LINK = By . cssSelector ( "a.quickshare-action" ) ; private static final By QUICK_SHARE_LINK_ENABLED = By . cssSelector ( "a[class='quickshare-action<seq2seq4repair_space>enabled']" ) ; private static final String DOWNLOAD_ACTION_LINK = ".document-download>a" ; private static final String VIEW_IN_BROWSER = ".document-view-content>a" ; private static final By VIEW_WORKING_COPY = By . cssSelector ( "div.document-view-working-copy>a" ) ; private static final By VERSION_HISTORY_PANEL = By . cssSelector ( "div[class*='document-versions']" ) ; private static final By WORKFLOWS_PANEL = By . cssSelector ( "div[class*='document-workflows']" ) ; private static final String START_WORKFLOW_ICON = ".template_x002e_document-workflows_x002e_document-details_x0023_default.edit" ; private static final String UPLOAD_NEW_VERSION_ICON = "span[class*='twister-actions']>a[class*='document-versions']" ; private static final String PUBLISH_CONFIRM = "////div[@class='publishConfirm']//div[@class='success'<seq2seq4repair_space>and<seq2seq4repair_space>contains(text(),<seq2seq4repair_space>'%s<seq2seq4repair_space>is<seq2seq4repair_space>queued<seq2seq4repair_space>for<seq2seq4repair_space>publishing<seq2seq4repair_space>to')]//span//span[contains(text(),<seq2seq4repair_space>'%s')]" ; private static final By SELECT_CHANNEL_BUTTON = By . cssSelector ( "#alfresco-socialPublishing-instance-channel-select-button-button" ) ; protected static final By PROMPT_PANEL_ID = By . id ( "prompt" ) ; private static final By BUTTON_TAG_NAME = By . tagName ( "button" ) ; private static final By HISTORY_VERSIONS = By . cssSelector ( "div[class*='document-versions']<seq2seq4repair_space>span[class='document-version']" ) ; private static final By SYNC_MESSAGE = By . xpath ( ".////span[contains(text(),'Sync<seq2seq4repair_space>was<seq2seq4repair_space>created')]" ) ; private static final By DOCUMENT_BODY = By . cssSelector ( "div[id$='document-details_x0023_default-viewer']" ) ; private static final By VIEW_ORIGINAL_DOCUMENT = By . cssSelector ( "div.document-view-original>a" ) ; private static final String ERROR_EDITING_DOCUMENT = ".////*[@id='message']//div//span" ; private static final String LINK_CANCEL_GOOGLE_DOCS = "#onGoogledocsActionCancel<seq2seq4repair_space>a" ; public synchronized void setPreviousVersion ( final String previousVersion ) { } public DocumentDetailsPage ( WebDrone drone ) { } public DocumentDetailsPage ( WebDrone drone , final String previousVersion ) { } @ SuppressWarnings ( "unchecked" ) @ Override public synchronized DocumentDetailsPage render ( RenderTime timer ) { } public synchronized String getDocumentVersion ( ) { } public boolean isDeleteDocumentLinkDisplayed ( ) { } public boolean isUploadNewVersionDisplayed ( ) { } public boolean isEditOfflineLinkDisplayed ( ) { } public boolean isEditOfflineDisplayed ( ) { } public boolean isLockedByYou ( ) { } @ SuppressWarnings ( "unchecked" ) @ Override public DocumentDetailsPage render ( ) { } @ SuppressWarnings ( "unchecked" ) @ Override public DocumentDetailsPage render ( final long time ) { } public boolean isDocumentDetailsPage ( ) { } public DocumentLibraryPage delete ( ) { } public String getDocumentTitle ( ) { } public HtmlPage selectUploadNewVersion ( ) { } public HtmlPage getFileUpdatePage ( WebDrone drone , final String version , final boolean editOffLine ) { } public WebElement getRevisionPanel ( ) { } public String getCommentsOfLastCommit ( ) { } public synchronized boolean isCheckedOut ( ) { } public synchronized String getContentInfo ( ) { } public HtmlPage selectEditOffLine ( File file ) { } public HtmlPage selectEditOffLine ( ) { } public EditTextDocumentPage selectInlineEdit ( ) { } private String downloadFile ( final String selector , boolean click ) { } public HtmlPage selectDownload ( File file ) { } public String getDocumentSize ( ) { } public boolean isFlashPreviewDisplayed ( ) { } public String getPreviewerClassName ( ) { } public boolean isNoPreviewMessageDisplayed ( ) { } public PdfJsPlugin getPdfJsPreview ( ) { } public DocumentDetailsPage clickOnDownloadLinkForUnsupportedDocument ( ) { } public HtmlPage selectSyncToCloud ( ) { } public HtmlPage selectSyncToCloud ( boolean isCloudSyncSetUp ) { } public boolean isSignUpDialogVisible ( ) { } public boolean isDestAndAssigneeVisible ( ) { } public DocumentDetailsPage selectUnSyncFromCloud ( ) { } public boolean isFileSyncSetUp ( ) { } public StartWorkFlowPage selectStartWorkFlowPage ( ) { } public HtmlPage selectStartWorkFlowIcon ( ) { } public boolean isSyncToCloudOptionDisplayed ( ) { } public HtmlPage editInGoogleDocs ( ) { } public HtmlPage editInGoogleDocsOldFormat ( boolean confirmUpgrade ) { } public HtmlPage resumeEditInGoogleDocs ( ) { } public boolean isEditInGoogleDocsLinkVisible ( ) { } public boolean isResumeEditingInGoogleDocsLinkVisible ( ) { } public boolean isInlineEditLinkDisplayed ( ) { } public boolean isCommentCountPresent ( long waitTime ) { } public boolean isHideRecordLinkDisplayed ( ) { } public String getSyncStatus ( ) { } public String getLocationInCloud ( ) { } public boolean isRequestSyncIconDisplayed ( ) { } public HtmlPage selectRevertToVersion ( String versionNumber ) { } public boolean isPartOfWorkflow ( ) { } public DocumentDetailsPage openCopyThisLinkInNewTab ( ) { } public String getExpectedVersion ( ) { } public synchronized void setExpectedVersion ( String expectedVersion ) { } public ChangeTypePage selectChangeType ( ) { } public boolean isDownloadPreviousVersion ( String versionNumber ) { } public void selectDownloadPreviousVersion ( String versionNumber ) { } public HtmlPage clickShareLink ( ) { } public boolean isFileShared ( ) { } public List < WebElement > getEditControls ( ) { } public boolean isViewOnGoogleMapsLinkVisible ( ) { } public boolean isDownloadButtonVisible ( ) { } public EditTextDocumentPage selectOnlineEdit ( ) { } public HtmlPage selectDownloadFromActions ( File file ) { } public boolean isViewWorkingCopyDisplayed ( ) { } public List < String > getDocumentActionList ( ) { } public boolean isVersionHistoryPanelPresent ( ) { } public boolean isVersionPresentInVersionHistoryPanel ( String version ) { } public boolean isStartWorkflowIconDisplayed ( ) { } public boolean isUploadNewVersionIconDisplayed ( ) { } public StartWorkFlowPage clickStartWorkflowIcon ( ) { } public HtmlPage selectUploadNewVersionIcon ( ) { } public HtmlPage selectViewProperties ( String versionNumber ) { } public HtmlPage selectInlineHtmlEdit ( ) { } public VersionDetails getCurrentVersionDetails ( ) { } public List < VersionDetails > getOlderVersionDetails ( ) { } public HtmlPage cancelNo ( ) { } public void clickYes ( ) { } public String getDocumentBody ( ) { } public boolean isErrorEditOfflineDocument ( String fileName ) { } public boolean isViewOriginalLinkPresent ( ) { try { <START_BUG> return drone . findAndWait ( DocumentDetailsPage . VIEW_ORIGINAL_DOCUMENT ) . isDisplayed ( ) ; <END_BUG> } catch ( NoSuchElementException te ) { if ( DocumentDetailsPage . logger . isTraceEnabled ( ) ) { DocumentDetailsPage . logger . trace ( "View<seq2seq4repair_space>Original<seq2seq4repair_space>Document<seq2seq4repair_space>link<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>displayed" , te ) ; } } return false ; } public DocumentDetailsPage selectViewOriginalDocument ( ) { } public boolean isSyncMessagePresent ( ) { } public GoogleDocCheckInPage clickCheckInGoogleDoc ( ) { } public DocumentDetailsPage clickCancelEditingInGoogleDocs ( ) { } No newline ; at end ; of file ; }

Fix:
return drone . find ( DocumentDetailsPage . VIEW_ORIGINAL_DOCUMENT ) . isDisplayed ( ) ;