Can I access flash elements(.swf) using capybara
Consider My web page having text box, Check box, options and submit box within the flash content (.swf) and I need to access those elements and I need to given an input and select the values and I need to submit the form.
Can I do this scenario using the capybara?
Any solutions please?
We aren't able to access the flash elements using Capybara.
Related
This is the webpage: http://dnr.alaska.gov/ssd/recoff/sag/BookandPageSearchMenu.cfm
I would like to be able to pre-select the District drop down menu using the URL that goes to that page.
Something like:
http://dnr.alaska.gov/ssd/recoff/sag/BookandPageSearchMenu.cfm?District=Palmer-311
But that doesn't work.
Is this possible using the URL?
If the web page is set up with a script to parse the URL and set the select box accordingly, yes. It is not possible on a random page lacking such built-in capability (which is likely the vast majority of pages).
I have an web-application in RoR which calculates some energy values and investment money. I use ajax to send the data from the web-browser to the server. It is something like this: Browser-server-Browser-Server-Browser
This web-application is already integrated in typo3 and I want to implement a PDF button to send the results per email (in other words, a photo of the page with the results).
I have heard an option would be to generate some links in RoR to be used in typo3 (when clicking on it, it would open exactly the web-application with the results already calculated). But as a newbie, I do not really know which would be the best approach.
Any recommendation?
A screenshot of the page can be done client-side:
http://html2canvas.hertzen.com/
You could even have another page with the same results that you use only for the rendering of the result page what you use for making a clean screen-shot (you might not want to have the footer, menu and other elements on that page, only the results)
Once you have your screenshot, you can upload it to your server where you can use it to create a PDF of that image and then send it with any mail API you prefer to use.
info about TYPO3's mail api can be found here:
https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Mail/Index.html
I have a Google Form that I programmatically pre-fill with data (Using Apps Script). I face the problem that, if the URL is too large, the server responses with HTTP Status 400 (Bad Request). The tested URL has 9.000+ characters
Is there a known workaround this issue?
Thanks
It seems that it is not possible GET an infinitely large URL to Google.
A workaround is the following:
Add a checkbox to the form, with only one possible answer.
Programmatically prefill the form with all the field, except checkbox above, and submit() it.
Give your user the Edit Link using FormApp.FormResponse.getEditResponseUrl() (documentation)
Programmatically ignore / delete items that do not have the checkbox checked.
This works because checkboxes with only one value get automatically filled when the form is opened (and submitted) in a browser, but not before.
I am generating some linecharts via JSF (Primefaces).
So charts are accessible and generated nicely via accessing in any browser.
However i need to send those charts via email to certain persons cause they do not want to click on a link so this should be automated.
Is there a way to generate an image out of what the JSF is rendering ?
Thanks
Charts are canvas based and can be exported as static images with client side api.
Take a look here:
http://www.primefaces.org/showcase/ui/chartExport.jsf
Primefaces use Javascript Libraries to render the charts. You would have to process the browser output before sending the email.
(Also, lazy managers)
You would have to dig into the Java Image API (not JSF) in order to plot the graph (from the raw data) into an image if you want the JVM to send the email.
If you want to just automate the process in your machine to send the emails (so you can send the emails in one click instead of doing it all manually, be mindful of this caveat:
You would have to generate a custom page with print CSS and your email layout, then use a browser plugin that sends the email on a click.
Is there anyone here uses openWYSIWYG 1.4.7?
I wanted to display only my textarea by calling
WYSIWYG.display('textarea1');
And I want the text on my textarea not to be selectable that's why I tried this
<textarea1 id=textarea1 name='test1' disabled ></textarea>
but it doesn't work.
Any suggestion?
I doubt if you can prevent selecting the text in text area directly.
You can try placing an element like iframe on top of with with higher Z-index.. so when the user selects what they see as a test area, he will actually be interacting with transparent iframe.
Please keep in mind that any such protection(including the one above) should be not used as a security option. User can always find a way to go select the text or even edit it before submitting it.. they can use web developer plugins like Firebug to do the trick.
Even HTTPS cant prevent this, when the user is itself doing the trick in his browser.
You do your validation in server side, if applicable.