angular / protractor

E2E test framework for Angular apps

Home Page:http://www.protractortest.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not Working Protractor Multi Row Selection through CONTROL key in Firefox Browser

A-Kavin opened this issue · comments

System:
Firefox Version: 91.0.2 (64-bit)
Protractor Version: 7.0.0
Typescript
Webdriver updated

Issue in Firefox Browser:
WebDriverError: HTTP method not allowed

Code:
async multiRowSelection(expectRow2:any,expectRow3:any){
await this.mainDiv.each(async (item)=>{
if(await item.getAttribute('row-index')===expectRow2){
await browser.actions().sendKeys(protractor.Key.CONTROL+await item.click()).perform()
}
});
await this.mainDiv.each(async (item)=>{
if(await item.getAttribute('row-index')===expectRow3){
await browser.actions().sendKeys(protractor.Key.CONTROL+await item.click()).perform()
.then(async() =>{
await browser.actions().click(protractor.Button.RIGHT).perform();
});
}
});
}