Log into a website using command line through a Progress 4GL UI - command-line

I am using the command "start " to open a website when a user clicks a button. The button is part of a UI written in Progress 4GL (ADM). Using the "start" command I am able to open the website. But, is there some way to pass on Login credentials as well so as to log into the website?
Here's the code snippet I am using on click of a button -
OS-COMMAND SILENT start "<website>".

You can pass parameters using a "?" in the URL. For example, to pass a search value into Google, you can use this URL:
OS-COMMAND SILENT START "http://www.google.com?q=searchvalue".
Your browser will display Google's page with "searchvalue" already in the Search field.
Look at the source of your webpage and find the username and password field names. Use those in the URL, separated by a "&". That should fill in the values when your START command opens the web page.

Related

how to use wget to input a string into a text box and hit "download" button

I'm trying to batch query a website with wget. The box name contains spaces such as "Enter sequence here", and I need to click "Submit" button to search. Any ideas how to pass this to wget? Thank you.
The box name contains spaces such as "Enter sequence here", and I need
to click "Submit" button to search. Any ideas how to pass this to wget?
wget is not browser automation tool, you would need other software if you want webbrowser to execute preprogrammed actions.
However, if above does send request to server and you are interesting in retrieving response to said request then wget might suffice. Please open developer tools (or similar - name might vary depending on browser) in your browsers (press F12 in Chrome) select network (or similar) then fill form and click Submit. Did new request appear? If so check its' verb, URL and headers, then construct suitable wget command based on this informaion.

Call onkeyup="lookup(this.value, event) function while doing automation

I am trying to perform IE automation using PowerShell. While automating some manual task using IE object,
I am able to navigate to the website and enter value in text box, but the submit button is not available on website.
Getting output after clicking enter manually on ie page.

Cant find the right xpath on a website

I am using selenium webdirver to log into a website and click a couple of buttons. The website that I want to connect to is twitch.tv. I can get it to click the log in button on top but cannot send keys to the username or password. It gives me an error when I try to use the username xpath of
//*[#id="loginForm"]/div[1]/input
and the password xpath
//*[#id="loginForm"]/div[2]/input
Whenever I try these xpaths I get a no such element exception.
If someone could help me get the right xpaths for these elements that would be great.
The login form and it's inputs are inside an iframe. Switch to it first.
Java:
driver.switchTo().frame("passport-login");
Python:
driver.switch_to.frame("passport-login")

how to send facebook message automatically without api

guys
now i knew how to send message without using facebook api,
i could use url to fill the message textarea in facebook's website
www.facebook.com/messages/[user_id]?msg_prefill=XXX
but here i'd like to know how to send this message automatically
in April, i found a way to click "send" button automatically (find "send" button in html text and click it),
but now facebook hide theses html text so that i can't find this button in html text.
Therefore, can anybody provide some ways or point to send message automatically.
thanks
Use the console in you browser (usually F12 to open) firefox console is the most powerfull, your console should have a command like "element inspection" or similar, use this tool to analize the button you want, read ing the code you should find someting like "on click" or simsimilar, after this you will find a java command to push the button. Anyway to do this kind of stuff without being a programmer,use selenium IDE, very easy,only for firefox,you must download it from firefox as add on. Good luck!

Facebook SDK install APP with install confirmation

I am looking for help to validate when a Facebook APP has been installed. I am currently using PHP SDK to have the clients sign in and in the same manor I would like for them to return to the site once the APP is completed and installed correctly.
Is there a method to use this link and have it return with the client id?
https://www.facebook.com/add.php?api_key=XXX
You should not use https://www.facebook.com/add.php?api_key=XXX for any cases other addition of application to page as a tab (and even this is undocumented).
If you're using PHP-SDK you should use Facebook::getLoginUrl to log user in, which support redirect_uri parameter so you can add client id as argument to this URL
Update:.
As it turns question is about adding application tab to page you should be using Add Page Tab Dialog to provide user with a way of "installing" application to page without leaving your app.
You can refer to answers on How to add tab application to a page with the "new auth dialog" for more info.
Update 2:
How to reach applications running as Page Tab described in "Integration with Facebook APIs" section of Page Tab Tutorial:
your application will also receive a string parameter called app_data as part of signed_request if an app_data parameter was set in the original query string in the URL your tab is loaded on. For the Shop Now link above, that could look like this: http://www.facebook.com/YourPage?v=app_1234567890&app_data=any_string_here. You can use that to customize the content you render if you control the generation of the link.
You not required to add app_data, just use v=app_APPID to link to your page tabs (Facebook itself using sk instead of v, both works).