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

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.

Related

G Suite App : Continue button on the "Domain wide install" stop working

I have configured a G Suite market place application and it's still in the test level. After filling the configuration page of the market application I got a button named "Integrate with Google" in the top of the Marketplace SDK configuration page
After clicking the button I get a pop up with the title "Domain wide install" there we have the "Continue" button. Previously that button redirected users to the consent screen, but it doesn't redirect to anything now. I did not change anything in the configuration so I guess this is probably a change from Google side.
Please let me know what the issue is?
There is an open Issue on Google's Issue tracker about this at:
https://issuetracker.google.com/153243016
You should add a start next to the issue number, for it to get more visibility.

Why get "Permission Needed" everytime for my word plugin?

I am builing Word Plugin, I follow the tutorial to set up SSO by adding
<WebApplicationInfo>
<Id>{application GUID here}</Id>
<Resource>api://localhost:44355/{application_GUID here}</Resource>
<Scopes>
<Scope>openid</Scope>
<Scope>offline_access</Scope>
<Scope>profile</Scope>
<Scope>files.read.all</Scope>
</Scopes>
</WebApplicationInfo>
into my manifest file, however, everytime I refresh the page, when I click my plugin icon, it pops "Permission Needed" dialog box to ask above permissions, even I already gave the consent before, I thought it will remember my consent for the app. It shouldn't bother me again and again, this behavior happens before "Office.initialize" event, therefore not my code cause that.
My question, any way to let the "permission needed" only popup at first time, and after I gave the consent no matter how many times I refresh the page, when I click my plugin icon, it will not popup again?
Thanks
* More info appended *
I use my "Work or School" account login to office365, the URL is https://word.office.com
choose any word file, and click my plugin.
Then give the consent for app.
Then, If I reload the current Word page (by pressing Ctrl+F5) and click my plugin icon again, it repeat the above steps which I already give the consent.
That not make sense, or it only happens when I am developing, then it will be ok when published to Microsoft AppSource?

X-Cart checkout is empty

I have problem with my x-cart website. When I click on "Buy Now" button on one product, and after that I click on "My Cart" which is the checkout section, it returns that my cart is empty although I already click to buy product.
Here is my website: http://www.farlin-cambodia.com/home.php?cat=591
How can I fix it?
The store you're referring to is of version 4.1.6, that's an old version where there were no adding to cart without redirect (with ajax). The behaviour in question is still there, thus the feature is added as a custom mode.
If JS is enabled in the browser, and if the store considers that it's enabled, the JS script is supposed to send some data to script minicart_content.php, and the php script is to process the received data further. However it doesn't happen, and there are no JS errors, which makes me believe that the problem is in the code of minicart_content.php, with this file is very likely being modified too.
If JS is disabled in the browser ( and if you click the corresponding button in the store in the pink side menu block - "If Javascript is disabled in your browser click here"), this custom scenario is not applied, so the store uses the default functionality which allows to add the products to cart with out problems.
Thus, the possible solution is:
roll back the custom changes you implemented, and use default functionality (adding products to cart with a redirect to cart page)
or
check the minicart_content.php script and find out, why it doesn't want to properly process the data sent by JS script
If you're not sure how to achieve this, consider contacting X-Cart support team for further investigation. Not sure if I can give a link to X-Cart support here, but I'm sure you'll easily find it, if only try to search=)

Like Confirm not working

I'm adding a Like button to a website and currently making a few tests. At first, everything was working fine, until the Confirm link started to show up whenever I clicked the Like button. I searched this and found out it is a spam control. So I understand the button showing up, since I am liking and unliking the site many times, for test purposes, and I'm OK with that.
The problem is that, even when I click Confirm and click Like again in the popup, the Like is ignored. The counter does not show any likes and the action is not posted to the Facebook wall.
The Facebook debugger does not show anything wrong with the url either.
Here's how to reproduce:
1. Access http://sjc.prima.net.br:8777/fb_test/like_test.htm
2. Click Like button
3. Click Confirm
4. Click Like again, in the popup
See that the Like is ignored.
Any help, please?!?

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!