Closed

Record navigation flow WebView Android for later use

i need to implement a simple logic, where user navigate into websites, click links, fill forms or other elements to go in the final destination.

After that all the navigation flow should be used to make an automated website navigation through WebView. I have implemented the logic to save all the links in order to be used later in automated WebView , but i can't automate the data that user input in the website.

For example imagine you open [login to view URL] -> go to the login page -> insert username & password -> click the search -> input friend name -> click to that name -> open profile page of that person -> finish.

Now this flow should be saved for automated navigation. I mean the WebView to do itself all the operation that the user did manually above.

This is how i tell the WebView to go to the following links :

public class WebViewController extends WebViewClient {

@Override

public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {

if (!loadingFinished) {

redirect = true;

}

loadingFinished = false;

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {

[login to view URL]([login to view URL]().toString());

}

return true;

}

@Override

public void onPageFinished(final WebView view, final String url) {

if (!redirect) {

loadingFinished = true;

}

if (loadingFinished && !redirect) {

[login to view URL](false);

} else {

redirect = false;

}

try {

[login to view URL]([login to view URL](hapi)); // This is a list contains all the links in order and i just get the link i order and when page finished loading go to the next link

hapi++;

} catch (Exception ignored) {}

/*if (android.os.Build.VERSION.SDK_INT >= [login to view URL])

{

[login to view URL](yourScript,null);

}

else

{

[login to view URL](yourScript);

}*/

[login to view URL](view, url);

}

@Override

public void onLoadResource(WebView view, String url){

[login to view URL](view, url);

}

@Override

public void onPageStarted(WebView view, String url, Bitmap favicon) {

loadingFinished = false;

[login to view URL](true);

[login to view URL](view, url, favicon);

}

}

But the problem is how to record users input inside any link, and before going to the next link WebView should fill the datas automatically.

Hope to understand what i mean, thanks.

Skills: Android, Java, Javascript, Mobile App Development

See more: android button navigation, android navigation drawer with activities, android navigation drawer fragment, android navigation drawer activity, android navigation framework, screen navigation in android, navigation flow android, android action bar navigation, android navigation bar webview, record play mp3 files android, simple webview android, webview android geolocation, webview android listview, listview webview android app, replace css webview android

About the Employer:
( 0 reviews ) Gjirokaster, Albania

Project ID: #16981811

7 freelancers are bidding on average $78 for this job

imagicaworld

Hi, Ready to work with you, could you please send me some more details about your project so we will estimate it accordingly.... Please go through this link:- [login to view URL] I'm interested in w More

$50 USD in 2 days
(75 Reviews)
6.5
nandu878787

We have 100+ games and apps on iTunes App Store and the same number on Google Play (Android Market). Expert in iOS, Android, Windows Phone, Facebook, Web, Mac and Windows apps and games development. AddonVision info More

$100 USD in 2 days
(90 Reviews)
6.4
seemasit

Hi there, Greetings from Seema !! “I read through the job details extremely carefully and I am absolutely sure that I can do the project very well.” So please come on chat for the further discussion so that I can st More

$25 USD in 1 day
(18 Reviews)
5.8
Weborchid

Hi there, My self Ankit and we are the team of adept coders and highly skilled designers with 9+ years of experience in IT sector. We have the 5/5 rating in each project. I have read the all the requirements and SUM More

$222 USD in 3 days
(9 Reviews)
3.7
aiwsoft

Hi "SIR", we are experts in Mobile App Development with a solid track record of serving international clients. Please buzz me

$100 USD in 3 days
(10 Reviews)
3.5
fazalnabiafridi

Hello sir I am Fazal Nabi having 4 year experience as an androids developer. Sir already implemented webview in different [login to view URL] come in private chat to discuss the app.. Relevant Skills and Experience I have More

$15 USD in 1 day
(8 Reviews)
2.6
krishan1992

Hello im android developer , i have an more than 3 year experience in android,i understand your issue , i can solve this issue , You want to populate back url when come back, You can hire me i will resolve this issue, More

$35 USD in 1 day
(1 Review)
2.6