Skip to content
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

S::R::D fails to get class attribute on Firefox #429

Closed
ylavoie opened this issue Jul 1, 2019 · 2 comments
Closed

S::R::D fails to get class attribute on Firefox #429

ylavoie opened this issue Jul 1, 2019 · 2 comments

Comments

@ylavoie
Copy link
Contributor

ylavoie commented Jul 1, 2019

Using FF v66, WebElement uses get_property instead of get_attribute for a class and returns an empty value
{
command "getElementProperty",
id "24851d23-cb09-475b-ac8c-5db2604254aa",
name "class"
} at /home/circleci/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Selenium/Remote/WebElement.pm line 280.

@teodesian
Copy link
Owner

Forgive the tardy reply.

Is this more confusion over get_attribute returning property value? I've already gone over this in several issues -- this is done deliberately because the old JSONWire method returned the property instead of the attribute, despite it's name. I have to be backwards compatible to not break old tests.

You can pass a flag to make it actually fetch the attribute instead, it's right there in the documentation.

@teodesian
Copy link
Owner

no input in a year, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants