how to access hidden button on a page? - java

I'm developing a program to navigate and perform actions on a page (scraper).
I'm using Java 8 + Jaunt API and I can fill forms of many pages around the web and submit this data.
I'm trying to access my profile in college page but the submit button is hidden and is generated by other code type.
I don't know how can I reach this button.
I'll let one example below:

Related

Java Browser handle button click

I need to open a browser with URL and then wait till person clicks a special button. And if it happens, return true. Can I implement it with java tools or should I use javascript?
You should use JavaScript. Java is a Server side language, so all processing of Java code will be completed before the user has the chance to interact with the page. JavaScript (traditionally) works on the client-side and is commonly used to capture user interactions with the browser.
yes, Java Script or any frame work that builds on Java script like Jquery works for you. If understands you correctly,
create Hyper link
Browse the page that you needed
Place HTML button on the page, write onClick logic on that button to return true.

Recording user actions events in browser using java

In browser(Firefox or Chrome) user performs many actions such as filling input or pressing submit button etc. Is there anyway(in Java) where we can record these actions(which component he clicks or Xpath of that element) on client side? Selenium has Webdriver but i am unable to find if it can does this.
There are a Java library called JSFlight.
This tool is splitted into three main parts:
Recorder - it's the set of the javascript files, that you should insert into your html document. You can configure which types of events you want to track. It can work with iframes too.
Player - this is the main program/library which plays recorded events.
Server - it's the wrapper upon the Player. Starts a standalone server with rest api. Uses the MongoDB.

Java GUI inputs to HTML bill

I am working on a project for a business. Using Java application, I am planning generate a sales bill. This is how it is going to work.....
When I run my java application, GUI window will popup and it will ask me to enter details to generate bill......after hitting submit button some background processing should happen and it should redirect me to
all data enter should be replaced by variable shown on the second pic, I also have code ready to generate this page in HTML.
Not able to figure out how to make this work.

Making popup in JSF

I am working on creating a pop-up in JSF for my project. The popup will be used for Country/State/City look-up.
The requirements are as follows:
It should be an overlay panel and not a new browser window
This is easier. I have multiple options
jQuery dialog
Some JSF library popup (ex. richfaces dialog)
The pop-up should be a separate page (a different JSP/XHTML) so the pop-up code won't get copied in a lot of pages
This is also easy. I could make a separate JSP and use some include tag to include this jsp where ever the pop-up is required.
The pop-up JSP should be able to have form with controls that may result in post-back events within the pop-up. Like the popup may have search functionality. So there may be an in put textbox, a button along with a datatable on the pop-up. When the search button is clicked,
some action needs to be executed to load the contents of the datatable, so the form (on the pop-up) will be submitted. This should not result in the pop-up being closed.
I am stuck up with this last requirement. If when the form (on pop-up) is submitted, the pop-up should not close, then this action should be asynchronous (AJAX). But the AJAX is not used in all the actions in my project. So If I need to solve this problem using AJAX, the AJAX script should be generic enough which won't require all the pop-up JSP's to re-write.
There might be a requirement to exchange data between the host page and the pop-up JSP.
May be this can be solved with some JS script. Am I correct ?
I need help with point# 3 and 4. In general if you are aware of any existing library to solve the problem, it would be great, but even if you could help with some directions, it would be appreciated.
Thanks in advance.

Is there a way to load an applet in chrome extension?

I have written a class for my application and want to use it in making chrome extension.I tried loading applet in popup.but it seems that chrome has blocked applets. The functionality i want to embed is when user visits a page he sees a button on omnibox..when user clicks the button i want to send some page elements to my applet which processes it and saves it as a file in the filesytem. for this i want to dynamically add the applet to dom..or atleast if i can load the applet its fine!!
This is a known limitation between Java Applets and Google Chrome, for more information please refer to the following issue: http://code.google.com/p/chromium/issues/detail?id=30258

Categories

Resources