Record navigation flow WebView Android for later use
$10-30 USD
Closed
Posted almost 6 years ago
$10-30 USD
Paid on delivery
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.
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 infotech is dynamic, reliable and truly professional company. We always strive to get our customers to be fully satisfied not only by developing high-quality solutions within prescribed time and budget, but by full involvement into projects working together with our customers to make the business success of their projects.
High quality and reliable services for clients:
- Native iOS applications development for iPhone and iPad (5+ years)
- Native Android applications development (6 years)
- Web development using PHP/ (7 years)
- HTML5 mobile applications (5 years)
- Mobile Game Development for IOS, Android and Web platforms (5+ years)
Reliability is confirmed by satisfied clients, feedback and portfolio.
Thank you in advance for your time and consideration.
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 start working on your project asap.
Thanks
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 SUMMARIZE the further details related to your job.
I can definitely help you out with your requirements.
For our portfolio visit our freelancer profile.
Kindly revert for further communication.
Thank You!
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, For more details you can come on chat we will discuss about this