我如何解决 sequence is not defined in actions class protractor

How can I solve sequence is not defined in actions class protractor

COUNTY HTML我的点击操作 class 如下所示:

var mail=element(by.xpath('//span[@class="mat-select-placeholder ng- tns- 
c44-174 ng-star-inserted"][text()="Country"]'));
browser.actions();

browser.actions.mouseMove(mail);
browser.actions.click().perform();
browser.sleep('3000');
var subMenu=element(by.xpath('//span[@class="mat-option-text"][text()="United States"]'));
subMenu.click();
browser.sleep('6000'); 

执行抛出时:

Message: Failed: sequence is not defined Stack: ReferenceError: sequence is not defined

感谢任何帮助。谢谢

<span class="mat-select-placeholder ng-tns-c34-236 ng-star-inserted" style="">Country</span>  

美国 us HTML html

你能试试下面的方法吗?

element(by.cssContainingText('span', 'Country')).click();
browser.sleep(3000);
element(by.cssContainingText('mat-option', 'United States')).click();
browser.sleep(6000);