SideeX / sideex

The Official Repository of SideeX 2
http://sideex.org
187 stars 53 forks source link

Command "sendKeys" can't work on WebDriver #37

Open EastJin7 opened 2 years ago

EastJin7 commented 2 years ago

My test cases haved "sendKeys" and "select" commands, they can work well if I disabled option "Playback Through WebDriver", But when I tried to "sendKeys" or "select" in playback through WebDriver ON, using SideeX Runner or WebService , It always appear error message "[ERROR] Event is not a constructor", browsers whatever used Edge or Chrome, but use command "type" to replace "sendKeys" can run test case successfully. sideex_event sideex_event2

-- 在未勾選"Playback Through [WebDriver]"的情況下, 我含有"sendKeys"與"select"指令的Test Cases能運作正常, 但只要在勾選Playback Through WebDriver或使用SideeX Runner, WebService的情況下嘗試"sendKeys"或"select", 它總是出現錯誤訊息 "[ERROR] Event is not a constructor",無論使用Edge或Chrome皆是如此, 只要將sendKeys修改為"type"時就可以成功運作. 不過同樣有錯誤的 select 找不到替代方案. 這問題困擾我許久,希望可以得到回覆!

EastJin7 commented 2 years ago

here is my log files and screenshots. GoogleDrive