0

私は今、電子スペクトルでいくつかのテストを書いています。

スペクトルがアプリを起動した後、ビデオが停止しているかどうかを確認したい

コードは次のようになります

エレメント

<video muted autoplay id='videoContainer' class='video'></video>

テストコード

.given("",function(){
    //do something
})
.when("",function(){
    //do something
})
.then("the player should stop the program", function() {

    return app.client.someFuncton('//*[@id="videoContainer"]')
        .then(result=>{
            console.log(result)  // suppose to get my video source
        })
})

webdriverIO には、ビデオ タグのソースを見つけるために使用できる getElementById のような API がないようです。

誰かが良い考えを持っていますか?

4

1 に答える 1