i want to be able to click a button on a website which will trigger an Eventlistener from some javascript in the background.
I found out that when i use this command in the webconsole in firefox while i am on the website i achieve my goal:
document.getElementsByClassName('button is-primary')[0].click()
I want to click this button every 30min and i want to click it from an android device.
I found that selenium will be capable of doing this task but i need a webdriver for chrome or geckoo and i think such things are not possible with lets say qpython on android.
Is there any other way to automate this?
My understanding is, that i need somekind of webdriver so the javascript in the background is loaded correctly.
I know automation software like "tasker" exists but i dont know if i can achieve my goal with that and if there maybe is an easier way.
Further info about the problem:
I have an environmental measurement device which only has a graphical webinterface via wifi.
The device should take measurements for 24h in th field.
I want to use an android device which i can place nearby. A laptop would be to big and complicated to setup.
Related
I have a button on a particular website that have to click frequently enough that it would save me a lot of time if there were a keyboard shortcut for it. Does anyone know if it would be possible to write a bash script or something that would allow you to press a keyboard shortcut, detect if your browser were in focus and on the given site, and then if so trigger the clicking of a button with a particular HTML id, or something like that?
I suggest you take a look at selenium. It is an automated testing tool for websites. There are libraries for various programming languages or even a chrome extension.
Selenium website
Selenium python library
Chrome extension
I am trying to automatestrong text a certain task and the procedure of it is as follows:
Open web browser (Google Chrome)
Go to a certain site
Put in username then jump to another field (like pressing the Tab
button.. it automatically log ins since I am connected to the
office network)
Type again on a certain field
Click search button etc etc
Is it better to code a windows service? Are there any other ways to do the above task? I wanted to automate it because the job is just more about Click, Type, Click, and Wait. The values are also somehow fixed so it could really be automated.
i would like to program a website using javascript.
The website has to be able to be contantly checking the gps-chip of an android device.
When specific coordinates match (coordinates given by the remote-server and coordinates given by the gps-chip), the user should get a notification like a sound or a vibration and a pop-up-window with further information.
Like, when the device passes a coffeeshop, the user is alerted, that there is coffee in the area.
It has to be a website, not an app.
Is such a thing possible?
Are there well known examples for services using such websites?
I hope, my question accurate enough, to be answered.
Thank you in advance.
I am trying to detect if the user of a web application has hit command + (say if they are on a Mac) or otherwise instructed their browser to enlarge the view in their browser.
Is there a standard way to do this with JavaScript?
Okay having reviewed the various options it seems that by using a combination of the browser's onResize() event and Tom Bigelajzen's fork of Yonathan Randolph's 'detect zoom' script does what I need.
Hi all sorry if this is repost. I really searched but can't find anything on it.
I always see this special ad when I use google services on my iphone or ipad. This little window animates out looking like a chat box. I can detect iOS device using user agent but how do I make the advert appear like google does? Specifically, try to open google maps.
I would like to use a window like this when users use iOS device to access my website. It is the most elegant way to tell iOS user about your app while not annoying them with some roadblock each time you try to access with iOS device.
Here is an image of what I'm talking about:
You can use this Javascript: http://cubiq.org/add-to-home-screen
I don't know whether this is your expectation, When your page has access from any iOS device, you wanted to bring up that dialog in webpage Right?..If That is the case then just retrieve the os info and make check there and do your presentation as you want.