0

I am trying to figure out how to parse HTML where I should execute javascript.

I was trying a lot of way to do that, but still have nothing

For example:

  • HTMLUnit - seems to me like the best parser to execute javascript, but when I try to add dependencies getting error, that haven't solved in stackoverflow

  • Selenium Web Driver. Also looks good, but again a lot of problem with dependencies. And cannot find any examples of that

  • Rhino. Very limited documentation about integration in android

  • JSoup. Pretty good, but cannot execute javascript

I will be very thankful who will try me to figure out how to parse HTML with javascript with some examples. Thank you very much

Mykola
  • 69
  • 1
  • 6

1 Answers1

1

You should think of using Appium to parse your HTML webpages on Android. Appium is an extension of Selenium Webdriver providing automation capabilities on Android and iOS.

You can get started from this link: How to setup Appium Environment for Android Automation?

Also, you can execute javascript using appium driver:

js = (JavascriptExecutor) driver; 
js.executeScript("<JAVASCRIPT CODE>");
Community
  • 1
  • 1
parishodak
  • 4,506
  • 4
  • 34
  • 48