yandex-qatools / htmlelements

Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Other
271 stars 116 forks source link

class must either be declared abstract or implement method 'getRect()' in 'WebElement' #114

Closed robertgates55 closed 8 years ago

robertgates55 commented 8 years ago

I recently updated versions on my test framework, and my HtmlElements classes are now displaying the error: class 'Blah.class' must either be declared abstract or implement abstract method 'getRect()' in 'WebElement'

I'm running latest selenium release and 1.15 of htmlelements - any ideas what's happened or how to resolve? Tests are still running fine, but my IDE (IntelliJ) is showing the class as errorring.

artkoshelev commented 8 years ago

Since you have no problem with compilation and runtime execution it looks like some problems within IDE.

pazone commented 8 years ago

There is new getRect method has been added to WebElement. You can see it here. So, if you are using Selenium 2.53 you should implement getRect or use older version of Selenium or just ignore this warning @artkoshelev what is your opinion ?

artkoshelev commented 8 years ago

Thank you, @pazone i just missed that change when checking it in selenium codebase. I thing we should support it in the next version, so PR's are welcome =)

artkoshelev commented 8 years ago

fixed here https://github.com/yandex-qatools/htmlelements/pull/115

ham1 commented 8 years ago

Is it possible to do a new release now that this issue has been fixed and merged? Or is there some way to get the latest snapshot in maven?

artkoshelev commented 8 years ago

Had you tried 1.16-SNAPSHOT version?

ham1 commented 8 years ago

I've tried, but unfortunately got the following: Could not find artifact ru.yandex.qatools.htmlelements:htmlelements-java:jar:1.16-SNAPSHOT -> [Help 1]

artkoshelev commented 8 years ago

As you can see It's available in sonatype repo, so check your maven settings.

ham1 commented 8 years ago

I added the following to the pom and it's working now, many thanks.

<repository>
  <id>oss-sonatype</id>
  <name>oss-sonatype</name>
  <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
</repository>