Java – how to add selendroid to the web crawl of Android studio?

I'm trying to use selenium to set up dynamic web scraping, but I can't seem to find the necessary graduation dependency / lib file to add to my project I looked at the selendroid / selenium website and couldn't find the necessary configuration information I assume I need webdriver because I'm going to scrape network data As a note, I have decided to use selendroid to find htmlunit incompatible Android, and have not found any feasible alternatives All the help was appreciated

(other questions addressing this issue remain unanswered)

compile 'io.selendroid:selendroid-client:0.16.0'

However, when running my application, I received the following error (repeated about 10 times):

Warning:Dependency org.apache.httpcomponents:httpclient:4.3.6 is ignored for debug as it may be conflicting with the internal version provided by Android.
     In case of problem,please repackage it with jarjar to change the class packages

Please note that I also try to use the following:

compile 'org.testcontainers:selenium:0.9.7'

But I encountered the same mistake

Solution

Such a thing

buildscript {
     repositories {
         mavenCentral()
     }
     dependencies {
         classpath 'org.seleniumhq.selenium:selenium-java:2.47.1'

         } 
 }

(use gradient to join Maven buy back)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>