In order to double click on the folder named "Demos Business Story" in this dialog, it is necessary to scroll down as the folder is not initially visible. The folders are listed in alphabetical order within the dialog, so scrolling down is required to locate and double click on the specified folder. Unfortunately, attempts to scroll down using JS Executor have been unsuccessful.
How can we effectively scroll down in this dialog to access and double click on the desired folder? Without scrolling down, the folder remains out of view and inaccessible for clicking.
Folder name: Demos business Story
html:
<span class="CatalogObjectListListViewItem" title="Demos Business Story" tabindex="0">
<img class="CatalogObjectListItemSmallIcon" src="/analytics/res/v-eBAAmeYhUME/sk_Alta/catalog/folder.png" alt="Folder">
<span>Demos Business Story</span></span>
xpath used in code:
//span[contains(@class, 'CatalogObjectListListViewItem') and (@title='%1')]
I am unsure how %1 identifies the folder name within this xpath expression.
Efforts made:
((JavascriptExecutor)getDriver()).executeScript("scroll(0,400)");
//attempt to scroll down the dialog
doubleClick("elemSaveDialogListViewItem" + "(" + folder + ")");
//try to double click on the folder