-
-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variables aren't recognized in Assert Text and Assert Not Text #1836
Comments
Ah! My mistake, will fix later tonight. For the moment, you can work around this with wait for text / not text |
@edvinjunda - Okay, I checked out the assert stuff. I think assert text is looking okay. For the other assert commands, a TON of them were missing preprocessors, so I went through and added those back. Honestly, I think in v5, I'm going to have a migrate script to collapse all assert and verify commands into the waitFor variants. I think having a smaller set of hardened commands will be better for users. |
@edvinjunda - Alright, new version is going up for testing here. Will probably just release after CI passes |
@edvinjunda - Could you confirm if this works on latest? |
@edvinjunda - 🤦 I realized I hadn't been publishing the latest versions. I just published the latest binary x.14. Please test at your convenience. My mistake |
@toddtarsi sorry for not responding for so long, I'm quite busy with other stuff, when I will have time I'll check |
🐛 Bug Report
Assert Text and Assert Not Text don't recognize variables written in target xpath in following way: "xpath=//div[${variable}]" same like in this issue I think #1690. Error text: "invalid selector: Unable to locate an element with the xpath expression /html/body/div[1]/div[3]/div/div/div[3]/div/div/div[${i}]/div/div/div/div[2]/div[8] because of the following error: SyntaxError: Failed to execute 'evaluate' on 'Document': The string '/html/body/div[1]/div[3]/div/div/div[3]/div/div/div[${i}]/div/div/div/div[2]/div[8]' is not a valid XPath expression.".
To Reproduce
Use variable in target xpath with Assert Text and Assert Not Text commands.
Expected behavior
Variables are available for use in those commands target xpaths without problems.
Project file reproducing this issue (highly encouraged)
Just use Assert Text and Assert Not Text commands which have variable written in target xpath.
Environment
OS: Windows 10 OS
Selenium IDE Version: 4.0.1-beta.12
Browser: Google Chrome
The text was updated successfully, but these errors were encountered: