-
Notifications
You must be signed in to change notification settings - Fork 80
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
Dropdown: The class value "dropdown-wrapper " has an extra blank space in the end #8894
Comments
@InforBG we can get rid of the space. But that being said i never recommend xpath |
Thanks, @tmcconechy .
If we don't use the xpath, what will you recommend? Thanks for any advices. |
@InforBG we will update this for you as the space isnt needed but i usually suggest css selectors in whatever test tool im using. (i also like it since its similar to JS development in general) So then select by class instead and it could ignore the space? |
Thanks for update this. The CSS locator in Selenium seems to have limitations. It is better than the other locators when locate web elements based on their id, class, name, attributes. https://www.browserstack.com/guide/xpath-in-selenium
|
OK @InforBG i dont use selenium directly we use Playwright so cant 100% help but i know that xPaths have in the past caused issues. Will get a fix for the extra space |
Describe the bug
In IDS 4.95.x, the class value "dropdown-wrapper " has an extra blank space in the end. IDS 4.93.0 doesn't have this problem.
We are using XPATH to locate the web element for Automation tests. For example, the XPATH is
"./following-sibling::div [./@class='dropdown-wrapper']/div[not(contains(./@style, 'display: none;'))][1]"
.In IDS 4.95.x or 4.96.0, the XPATH becomes invalid.
Is it a design change or bug to have the extra blank space in the end?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The class value don't have the useless space in the end. It should be just
"dropdown-wrapper"
.Version
Screenshots
![image](https://private-user-images.githubusercontent.com/114138479/347702916-cc1e95e1-c012-40bd-9429-f74787cb580a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5ODI0MjAsIm5iZiI6MTcyMjk4MjEyMCwicGF0aCI6Ii8xMTQxMzg0NzkvMzQ3NzAyOTE2LWNjMWU5NWUxLWMwMTItNDBiZC05NDI5LWY3NDc4N2NiNTgwYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNlQyMjA4NDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNGMzOTk0MDRmOTVkZDAzNjQxZjViMDdmZjM0YWJhMzM4MmI1NmRjNTRmNmE4ZGU5MWUwZTYxMTMzOWY0NTk4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.nos7zl8zM4hk6xRmgAeqcHAhl3-gAeOPqKjmA0NfWwA)
Platform
The text was updated successfully, but these errors were encountered: