Skip to content
Advertisement

Validate dynamic (Span tag) Text using selenium Java

I need help with writing a logic to validate a dynamic text, below tag is having text which would be changing constantly( to 6 unique words), i need to validate if those 6 unique words are same as expected text. is there a way to validate that.

Note – words are created in incremental way eg – a, ap, app, appl, apple

Dynamic text Html

Advertisement

Answer

JavaScript

combine with Compare two ArrayList of String for values inside it in Java Selenium

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement