Hi I'm trying to automate a context menu using scLocators generated by the the Selenium IDE FF addon.
I'm able to generator scLocators that work for all DOM elements except menu items in a context menu.
I'm using v11.1p_2018-02-09/PowerEdition Deployment (built 2018-02-09).
For generating the selectors I'm using FF ESR 52.6.0 + Selenium IDE addon 2.9.1 + ISC selenium plugins: user-extensions.js + user-extensions-ide.js
For my selenium testing I'm using Chrome version 64.0.3282.167.
Typically the generated scLocators are the autoId kind and they all seem to work.
The *working* scLocator for the root context menu is: //autoID[Class=VLayout||index=9||length=54||classIndex=0||classLength=35]/member[Class=HLayout||index=1||length=3||classIndex=0||classLength=1]/member[Class=VLayout||index=0||length=3||classIndex=0||classLength=1]/member[Class=TabSet||index=0||length=1||classIndex=0||classLength=1]/tabPane[title=Overview||ID=_PG_0||index=0]/member[Class=TabSet||index=1||length=2||classIndex=0||classLength=1]/tab[title=%3Cb%3E%3Cfont%20color%3D%22green%22%3E*Aggregate%20Loans%20-%20All%20Product%20Types%3C%24fs%24font%3E%3C%24fs%24b%3E||index=0]/" The context menu items all yield scLocators that look like this:
//Menu[level=0]/body/row[title=Sandbox||6]/col[fieldName=title||1]"
//Menu[level=1]/body/row[title=Switch%20workspace%20to%20new%20sandbox...||5]/col[fieldName=title||1]
None of these context menu item scLocators starting with '//Menu' seem to work. I get the following error on my IntelliJ console:
Element not found! //Menu[level=0]/body/row[title=Sandbox||6]/col[fieldName=title||1]
Attached is a screenshot of the context menu in FF and the associated scLocator generated in the Selenium IDE. I'm trying to automate the items in the context menu visible in the screenshot.
Thanks,
Ryan
I'm able to generator scLocators that work for all DOM elements except menu items in a context menu.
I'm using v11.1p_2018-02-09/PowerEdition Deployment (built 2018-02-09).
For generating the selectors I'm using FF ESR 52.6.0 + Selenium IDE addon 2.9.1 + ISC selenium plugins: user-extensions.js + user-extensions-ide.js
For my selenium testing I'm using Chrome version 64.0.3282.167.
Typically the generated scLocators are the autoId kind and they all seem to work.
The *working* scLocator for the root context menu is: //autoID[Class=VLayout||index=9||length=54||classIndex=0||classLength=35]/member[Class=HLayout||index=1||length=3||classIndex=0||classLength=1]/member[Class=VLayout||index=0||length=3||classIndex=0||classLength=1]/member[Class=TabSet||index=0||length=1||classIndex=0||classLength=1]/tabPane[title=Overview||ID=_PG_0||index=0]/member[Class=TabSet||index=1||length=2||classIndex=0||classLength=1]/tab[title=%3Cb%3E%3Cfont%20color%3D%22green%22%3E*Aggregate%20Loans%20-%20All%20Product%20Types%3C%24fs%24font%3E%3C%24fs%24b%3E||index=0]/" The context menu items all yield scLocators that look like this:
//Menu[level=0]/body/row[title=Sandbox||6]/col[fieldName=title||1]"
//Menu[level=1]/body/row[title=Switch%20workspace%20to%20new%20sandbox...||5]/col[fieldName=title||1]
None of these context menu item scLocators starting with '//Menu' seem to work. I get the following error on my IntelliJ console:
Element not found! //Menu[level=0]/body/row[title=Sandbox||6]/col[fieldName=title||1]
Attached is a screenshot of the context menu in FF and the associated scLocator generated in the Selenium IDE. I'm trying to automate the items in the context menu visible in the screenshot.
Thanks,
Ryan
Comment