Select a text and perform a click action

后端 未结 3 1822
故里飘歌
故里飘歌 2021-02-04 15:35

I\'d like to select some text and perform a click action - like in Winword where we click Bold after selecting some text...

I have to select the text and cl

3条回答
  •  情话喂你
    2021-02-04 16:08

    I tried with Action builder and played with offset. It worked for me.

    Actions action = new Actions(driver);
    action.moveToElement(wblmt,3,3).click().keyDown(Keys.SHIFT).moveToElement(wblmt,200, 0).click().keyUp(Keys.SHIFT).build().perform(); 
    

提交回复
热议问题