I have a number that comes to my email that I would like to copy and save but the number keeps changing all the time.
If I take the xpath it will contain that number (//b[contains(.,'821016')]
)
and I can't use anything from the source (at least I think I can't):
Can I use the location to copy the random numbers with CSS or maybe some kind of 0-9/* functions or any other suggestions?
Update: TushaGT:
//table/td/span/b - it picks up 2 elements:
And I need only the dynamic number, I got it to copy both through getText
but I can't paste. I get the following error when I try:
Exception in thread "main" java.lang.IllegalArgumentException: Keys to send should be a not null CharSequence