tosdr / tosback2

Reimplementing TOSBack with Ruby and using git to see TOS changes!
http://tosback.org
GNU General Public License v2.0
125 stars 32 forks source link

ambiguous path i don't understand #44

Closed michielbdejong closed 6 years ago

michielbdejong commented 6 years ago

https://trello.com/security: Ambiguous match, found 2 elements matching visible xpath "//div[@class='layout-centered-content']"

but i can't see the problem when i execute

a=document.evaluate("//div[@class='layout-centered-content']", document, null, XPathResult.ANY_TYPE, null)
a.iterateNext()
a.iterateNext()

in the browser console on https://trello.com/legal/security

Vinnl commented 6 years ago

When I inspect the source and check the .layout-centered-content CSS selector, I get 2 elements as well: the one with the "Trust @ Trello" heading, and the one with the bullet headings for "Security, Legal and Privacy, Availability, Need to report a vulnerability? and Thanks".

michielbdejong commented 6 years ago

fixed, i had a typo in the url (/security instead of /legal/security)