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

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.

Related

Powershell click button on website with dusk or title (no id or class)

I am trying to automate exporting csv file every week and trying to click 'Export Search Result' button on the SharePoint using PowerShell.
However, the button does not have id; it has dusk, title, type, and class.
The following is the html code for the button
I need a help how I need to correct my PowerShell script to make it work.

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

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.

Powershell IE automation losing control

I have a PS script (2.0) that I wrote that logs into a vendor provided website, clicks some links and scrapes some data and send an email based on that data.
The issue is they upgraded their website. I made some changes, but am stuck on one issue. You used to click a button to enter this website after logging in, but now you click a link. My code to click the link works, but after that I lose control. My document appears empty and I can't control it any further.
$ie.navigate2("https://ibsbusint.fnfis.com/BLP/NavModelServlet/Interop?appid=APPL00000056&channelName=EG_SSO")
WaitIE($ie)
$doc = $ie.document
WaitIE($ie)
$doc.getElementById("MonitorExtractJobs").Click();
The last line does nothing (even though the item exists in the browser). When I look at $doc, all the properties are blank. Not sure why since I set it after navigating to the new link.

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!

Why does Selenium IDE sometimes fail to click the submit button?

I have a Selenium IDE (version 1.7.2) test that I use to test the registration flow on my site.
In this test, I simulate signing up for several different accounts. To do this, I recorded myself signing up for several accounts.
When I play the tests back, some of the accounts are registered ok, but other times the Submit button is clicked (the action turns yellow in the IDE) but it hangs, refusing to fail (turn red) or go on. However, if I manually click the submit button in the browser window again during the test, the test will continue and it will mark the submit button green as if it passed correctly.
How can I get it to click the submit button correctly the first time? Or is there a way to automatically get it to re-click if it times out?
Are you using clickAndWait??if yes then change it to click and put pause after click command.Or try to locate element by different ways, or hit enter to submit form as
`keyDown | locator of element/last field | \13`
as twall suggested
Did you use the command waitForElementPresent before calling the click command ?
I have found out that is more secure to just sendKeys("\n") (simulationg an 'enter' key press) instead of using click() when filling out forms. Don't ask me why, but it was a big relieve to me, after I had found out.