Can automation be done in Google chrome that needs to perform the below function
1. Enter a job name that needs to be monitored
2. Click a refresh button in the web page (not the whole refresh button of Google chrome page that appears in left hand side corner) periodically
3. Open each sub job under the main job by clicking a folder type button and monitor whether its running or failed by differentiating the icons ( green color for running , red color for failed)
4. Alert needs to be prompted immediately if all the sub jobs are completed successfully or if any of the sub job is failed
Is it feasible without using celenium tool?
Awaiting for the reply
Selenium should perfectly fit for all your needs.
What is Selenium?
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
Related
I am using .NET WPF WebBrowser control in our application to launch the whole react application in web browser control.
But when I run the WPF application It shows me the dialog box with javascript error and if you press yes-yes to all the questions then also It ended up showing nothing on the screen but the blank screen
This is my code
public MainWindow()
{
InitializeComponent();
webBrowser1.Navigate("http://localhost:3000/");
}
Where my react application is running on port 3000(Checked everything and running properly)
This is the dialog box shown when I run the application
Second error for "2.aeaacf2c.chunk.js" file
Third error for "main.a60e0400.chunk.js " file
When I press "yes" for all , It ended up showing blank screen with no loaded JS
WPF's legacy WebBrowser control uses Internet Explorer which is pretty much a dead product. It will not display a React page better than IE, which is to say, badly or not at all.
Please take a look at WebView2 or better yet CEFSharp. (FYI I have no affiliation with either product). Either will suit your needs but I like CEFSharp better as it doesn't require the end user to install any dependencies. This is a big gotcha with WebView2.
I'm working on a javascript based web application. I have a webpage which has nothing but a button. When I click this button, it pulls data from another website and stores it in my Mongo database.
I need to automate this button click. That is, even without opening the website and clicking the button, the 'pulling data from another website and storing it in my database' should happen.
I literally do nothing but click a single button. So I believe this can be made automated and run automatically without human intervention at regular interval. (example: I need this process done everyday at 6 PM). Is this possible at all?
P.S: I've heard of Selenium but it isn't clear whether selenium would do this. Even if that's the case, I can't seem to use the tool. I was able to download a '.jar' file but it doesn't even open.
Appreciate any help!
You can almost certainly automated the click of a button with selenium, however, selenium works by opening a web browser and then interacting with different items as if it were a person. This would work, although it may be more resource intensive than you want.
Have you though about setting up the data pull to run via a console command/something else, which you could then automate without dealing with a GUI?
I need to make a headless (for a docker container) app that waits for an external signal and then acts on that signal by clicking on several html elements (selectors, buttons, links) and filling in some input fields. All this can be done using jQuery, I know how to do that.
The app needs to keep the page loaded so it can act immediately, reloading the page every time is taking too long. The whole action of receiving a signal and filling in a form and submit it, should be done under one second.
I made an electron app that does all this but I need to make the app headless so it can be run inside a docker container.
It looks like Phantomjs could do this but I see two problems:
The Phantom script needs to keep the web page loaded as the web page I need to automate is very heavy, it can take more than a minute to load.
The Phantom script needs to be able to receive a signal and report back on the progress. HTTP or file based is too slow, I'd like to use websockets for this communication.
I hope someone can point me to the right tools for this and/or point me to some examples how to achieve this.
I would like to use Javascript, but if there is a perfect solution in an another modern language, I have no problem to use that.
I managed to get it working inside a Docker container using Electron.
UPDATE: Found How can I get the current tab URL for chrome extension?
I require the tab.ID to refer to a tab of a specific URL. However not sure if this means me issuing the extension refresh itself constantly (or will the iframe the extension is contained within do this live)?
================
OP
I would like to develop a Chrome extension. At this stage of development what I need it to do is 'know' which website it is on. I'm not very experienced with JavaScript (I have some experience developing applications in Java and C, whereas Python is kind of my specialty language and I've deployed a lot of powerful tools using this).
I'm not sure how to go about getting live information of the website the user is currently viewing without constantly refreshing the iframe the application is contained in. I'm thinking of some kind of for loop to do this work for me but I'm also worried about the rate at which this refresh is going to take place (I don't want Chrome to start CPU hogging if many tabs are open).
The framework I'm looking to use during development looks like this (not sure if this is ideal but this is what I have in mind)...
FOR [EXTENSION IFRAME]
{
Extension page IS Extension_OFFLINE (indicating tab is not on, online_example_page)
Extension page IS Extension_ONLINE (indicating tab is on, online_example page).
}
Such that [EXTENSION IFRAME] actively detects what web-pages you are viewing. I would like to avoid refreshing the extension constantly to get this information if possible.
So what it'll look like is the logo and html page will change depending on whether or not you're connected to the online_example page which could be https://example.com.
If the user is on different tabs this is fine. I only need it to detect at least one instance of https://example.com (so ideally ranging over all tabs).
Thank you in advance if you're able to help!
I am working on a project to find a tool or solution solution with iMacros that will allow me to automate a large portion of regression testing on our site. The main scenario that I'm trying to make work goes like this:
Use tool iMacros to go through a set of actions - in this case,
a) Visit site
b) Login to site
c) Use search bar on screen to search for product
After the search page loads, there is a header that I need to verify. For this particular scenario, the expected result is "v1=header".
If I were not trying to make a macro from this, I could easily manually find it and observe (i.e. pressing F12 in Chrome, clicking "Network", sorting by the term "b/ss" and finding the "v1=" from the list after the search page loads.
What I cannot seem to do is to record this action, then reply it later and record the results. I am currently evaluating iMacros, by itself and with the Firefox add-on and Chrome extension. iMacros seems to be the answer to this...but all of my searches on how I would make iMacros do exactly this has not been forthcoming.
So far I have tried:
(Chrome) Pressing F12 in window and in its own window - iMacros would not respond to anything done within that window
(Firefox) Recording clicks and button presses while using HTTPFox when viewing the results - again, iMacros would not respond to anything in that window
Having iMacros take a screenshot while HTTPFox was open with the information I was looking for - the screenshot only showed the page without the HTTPFox information.
Considering I have very little experience with html and javascript, I'm running out of options to search for. Anything that anyone can come up with would be greatly appreciated. Thank you in advance for your time.
Determined that iMacros does not have the capability to do what is needed, and will not recognize any web dev panel (firebug, httpfox, etc) when recording macros or screenshots.
Utilized approxiblue's suggesting to check out Selenium (Webdriver), which after a week of code-surgeoning with examples from various sites, was able to piece together a combo of Webdriver/Firefox/Firebug/NetExport to listen to the http requests when performing a search and then exporting the events to a .HAR file.