I'm trying to automate a login/logout test to my website using Selenium IDE and I'm facing a problem while trying to verify a value displayed in the page.
In my test I first verify the title of the page using "store title" and then "verify" with the target "title" and the name of my website name in "value" and it works correctly.
However, when I want to verify a random string in my website which is in a span like that I'm facing an issue. (there's no other way in the website to see the username we used to connect)
I didn't find anything that could allow me to store the value which is not in the span directly with a tag like "value=admin" or "username=admin" where I could use "store attribute" for example.
What I tried
Also, I tried using the "store text" command using "Select target in page" (it gives me :
css=span:nth-child(3)) and then click on the text and associate it with value "admin" but when I try to verify that the target "admin" equals to value "admin" it says : "Actual value '' did not match 'admin'"
Similar but uses Selenium Webdriver : How can I get the value from span class in selenium?