Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Maven Builds of selenium-2.0a2.jar fails to include htmlutils.js, ending in runtime exception #412

Closed
lukeis opened this issue Mar 2, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 412

What steps will reproduce the problem?

1. Create a m2 project (take the sample pom.xml enclosed)
2. Create a testcase (also enclosed)
3. Watch the test fail on any isTextPresent predicate

What is the expected output? What do you see instead?

Should not issue an error, but it is thrown an exception due to not being
able to find htmlutils.js

What version of the product are you using? On what operating system?

2.0a2 using the m2 builds

Please provide any additional information below.

In order to fix, apply the following patch in seleniums' pom.xml:

Index: pom.xml
===================================================================
--- pom.xml (revision 8490)
+++ pom.xml (working copy)
@@ -69,6 +70,12 @@
     <build>
         <sourceDirectory>src/java</sourceDirectory>
         <testSourceDirectory>test/java</testSourceDirectory>
+        <resources>
+          <resource>
+             <directory>src/java</directory>
+             <includes><include>**/*.js</include></includes>
+          </resource>
+        </resources>
     </build>

 </project>




Reported by aldrinleal on 2010-03-08 19:07:59


- _Attachment: [pom.xml](https://storage.googleapis.com/google-code-attachments/selenium/issue-412/comment-0/pom.xml)_ - _Attachment: [TestRecuperarSenha.java](https://storage.googleapis.com/google-code-attachments/selenium/issue-412/comment-0/TestRecuperarSenha.java)_
@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I have confirmed that this patch to selenium/pom.xml solves the problem.  It may be
worthwhile to note that this is a more inclusive include than in the Rakefile.

Reported by chris.burroughs on 2010-04-12 17:45:06

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

We no longer use maven to build the releases, even those that are sent to the maven
repos. Closing this issue.

Reported by simon.m.stewart on 2010-07-28 21:06:05

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 17:48:57

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant