We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
aa1 , I see you are working on this with the Support Team. Currently, they are waiting for more info from you.
Please provide them with the info so that they could move the investigation forward.
We will highly appreciate if you share the result of the investigation here:smileyhappy: Thank you.
Try using Keys instead of SetText. That mimics a user typing in the box instead of just updating the field. Perhaps that will trigger your button.
Thank you for the reply. Yes I tried that but it made no difference at all.
What else have you tried and what exactly happened when you did? It's hard to help if we have to guess at the details.
Aliases.browser.page.form.textboxCreditCardNumber.Keys("");
Aliases.browser.page.form.textboxCreditCardNumber.Keys("4110044510001234[Enter]");
Aliases.browser.page.panel.panel.textboxCreditCardExpirationDate.Keys("");
Aliases.browser.page.panel.panel.textboxCreditCardExpirationDate.Keys("12[Enter]");
Aliases.browser.page.panel.panel.textboxExpirydateyear.Keys("");
Aliases.browser.page.panel.panel.textboxExpirydateyear.Keys("2022");
Aliases.browser.page.form.textboxCvvNumber.Keys("");
Aliases.browser.page.form.textboxCvvNumber.Keys("123");
Aliases.browser.page.form.textboxCvvNumber.Keys("[Enter]");
Aliases.browser.page.panel.panel.textboxExpirydateyear.Keys("[Tab]");
Aliases.browser.page.panel.panel.textboxExpirydateyear.Keys("2022");
Aliases.browser.page.panel.panel.textboxExpirydateyear.Keys("[Enter]");
aqUtils.Delay(ProjectSuite.Variables.ExistsTimeout);
Runner.Pause();
var btnPayNow = Aliases.browser.page.panel.panel2.buttonPayNow;
while (! btnPayNow.Exists)
{
aqUtils.Delay(ProjectSuite.Variables.ExistsTimeout);
btnPayNow = page.NativeWebObject.Find("class", "Pay now", "btn btn-primary");
}
btnPayNow.Click(); The above code is what I tried. I tried SetText as well. When it comes to the last line, it fails saying the button is disabled.