calendly Iframe Embedded response data - calendly

I am using these code to load cleanly calendar.
Calendly.initPopupWidget({
url: 'https://calendly.com/mojo-customer-experience/renewal-check-in?embed_domain=calendly-embed.com&embed_type=Inline&back=1&month=2020-10',
utm: {}
},false);
once user select the date and time, i need to read the scheduling date and time web page itself. can you please help how to read scheduling information
Thanks,
Mani c

Related

How do I modify the POST data with selenium

I want to query the whole month data 2015-6
I found every POST request will send the following two params
MarketMonth1 2015-6
MarketDay1 17
one is for year-month, the other is for day.
It is too verbosed and time consuming to set the value mimic the mouse clicking on calendar.
I wonder if I can inject/modify the POST params when sending the POST request.
You can not do it directly with WebDriver, but you can direct all your traffic thru a proxy and modify all you need before sending it server. You can check this answer about setting up browsermob.

Receiving notifications

I run a parse app that is basically an appointment system but I was wondering if there is a way that my app/parse can notify me when someone sets an appointment? As of right now I receive no emails or any kind of alert so I have to stay on the parse site, and refresh it every 5 minutes.
One thing you could do is write a cloud code pre save function that sends you an email automatically every time an appointment is saved.
https://parse.com/docs/cloud_code_guide#functions-onsave
That link should help you get started on writing a cloud code function on save for your objects.
As far as sending an email from Javascript, I believe it is doable, here is an example of part of a response that could help you:
http://stackoverflow.com/questions/7381150/how-to-send-an-email-from-javascript

Download JSON data from a web form

I am writing an app that asks for some data from a web-based form and then displays the returned JSON data. But I can't seem to get a handle on how "fill in" the form and get the data returned. The website developer has made a development form for testing this so I can see how it works. If I go to that website and enter data into the fields and press "Submit", it returns JSON-formatted text and displays it in the web browser's window.
What I need to do is have my app populate those fields with data and submit them to the server. The server returns the JSON data and I capture and process it in my app.
I would appreciate any advice on how to do this. As you may have guessed, I am a very new to iOS development. Thanks in advance.
Firstly, you'll need to know what form data you're going to send in a POST request. If you don't know where to find that, take a look at this.
Consider using AFNetworking to make that POST request with JSON feedback. Here's a good example.
Good luck!
This walkthrough by Matt Long is particularly good: http://www.cimgf.com/2010/02/12/accessing-the-cloud-from-cocoa-touch/.
Essentially, you just need your fields in the post data to match the fields that are present in the html form. Those fields should be evident by posting the form in chrome and watching the request in the network tab in developer tools.

best way to test form submitting

I have a form that posts to an external url
<form method="post" action="http://api.domain.com/AddAnswer">
and I'm using MongoHQ to "dump" the result of that form
I wanted to make a simple test to submit 100 forms just to see if I get 100 answers in MongoHQ
Is there any available services out there for such, or I need to create my own auto-submitting?
Blitz.io only work with GET's, and I was thinking as well that would be nice to test the browser as well, as Chrome always get the Origin error as form host and form action are in different servers (even though the form is submitted correctly).
If no service available for such scenario, how would you proceded?
I was thinking in creating a HTML page and hosted somewhere, then open a Windows/Web page that I would hit that url 100 times.
I could easily add
$(function() {
var dt = new Date();
// set date so we can have different posts data
$("#dt").val(dt.getTime());
// auto submit
$("form").submit();
});
to the static page...
If I get your idea correct, you want to execute 100 post requests and then to verify that the response is correct.
If I am right, I can suggest you http://www.soapui.org/ . It is pretty simple to create that kind of test cases by following the tutorials they provide. Basically in your case you just need to develop a test which execute the request and verify the response content (if just waiting for response code 200 is not enough for you). Then you need to develop load test which call your verification test N-time. And that’s all. As a result you will have test case which verify that you have N right responses.

Sending Data to JS Form from iOS App

The Red Cross has a locator page where you can submit a zip code by means of a form and that runs through a JSP to return contact information for your local Red Cross office.
From an iOS app, I have the user's zip code and would like to run this process and get that contact information back... or at least the appropriate URL to link to. I was hoping I could find some way to pass the zip code by URL but it doesn't look like it's going to be that easy.
Could anyone offer some direction as to how to go about this? I've done some simple things with forms before but I'm not quite sure where to start with this one.
According to the <form> action parameter, that's the URL you have to post your data to:
http://www.redcross.org//portal/site/en/template.MAXIMIZE/ziplocator/;jsessionid=MWwKPvjSWmvz8p4XrRtNLVL0VCTM7fcwfnFnKHpwRhJTnwLMMDcv!-1938881463!-1334769155?javax.portlet.tpst=2bd907ea326f7e9e934afa36c23f78a0_ws_MX&javax.portlet.prp_2bd907ea326f7e9e934afa36c23f78a0_viewID=result&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&vgnextoid=6d65e821cbdf9110VgnVCM1000002bf3870aRCRD
The field name is zipcode. The AFNetworking documentation is quite okay explaining how to send a POST request. I would also recommend the nsscreencasts series, he has an episode on AFNetworking as well.
I hope this helps. :)
You can use NSURLConnection to execute a post request and return the result, you may have to do some parsing of the result though depending on the format it is returned in.
Here is an example:
http://forums.macrumors.com/showthread.php?t=689884
NSURLConnection documentation:
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/nsurlconnection_Class/Reference/Reference.html