mardi 10 décembre 2019

How do I extract time and day from element text?

Hello I'm new to automation. I have an element selenium WebElement, how do I extract day and time separately from the text.

EX: jkjkjkjk Today 12:10am Picture send unread . Extract Today and 12:10am separately.

EX: text uploaded Ferrari Friday 3:06pm Voice mail. Extract Friday and 3:06pm separately

I tried:

WebElement.getText().split("hh:mm"); 
Time WebElement.getText().split();// - Day?

Aucun commentaire:

Enregistrer un commentaire