Recently, I have been experimenting with selenium webdriverjs in javascript to locate an element that includes the partial text "hoi" as well as the text "hoe gaat het". I attempted to use ByChained for this purpose, but encountered an error stating that ByChained is not defined. How can I define ByChained in Javascript?
driver.findElement(new ByChained( By.partialLinkText("hoi"),(By.linkText("hoe gaat het")) ) );