TestProject Forum

How to Get Select Option Value?

Hello, I’m new in automation testing, and I have a question

So I have dropdown like this

Instead of getting Value A, AB, B, O
Can I get Value 1, 2, 3, 4 from full path?

So I use random number to click random option in dropdown & combo box, but I don’t want to click selected option again, If I can get value by number I can add validate output: Output value not equals to the current number

Thank you