0

I'm trying to store the verification code into verfcode variable. How can I do that?

enter image description here

enter image description here

James Z
  • 12,209
  • 10
  • 24
  • 44
Shritik
  • 1
  • 1

1 Answers1

0

I see you are trying to store a text from the table cell - you could just use

storeTable(tableCellAddress, variableName)

Anyway, you can always use storeText, but it all depends on from where the text is supposed to be stored.

If you would like to know about why getText gets empty string, you should probably read this answer - getText() method of selenium chrome driver sometimes returns an empty string

Vlad D.
  • 1
  • 1