Handling Alerts in Java Selenium

Alerts are a common feature in web applications. They can be simple information messages, confirmation prompts, or even critical error notifications. Handling these alerts effectively is crucial for any Selenium test automation script. In this article, we’ll explore how to deal with alerts in Java Selenium. Handling Alerts in Java Selenium Selenium WebDriver provides a… Continue reading Handling Alerts in Java Selenium

Restrict the sales order creation if the sales team is empty

Requirement While creating a sales order, if the sales team is empty, then show a pop-up message to notify that the sales team is empty and doesn’t allow the creation of a Sales Order record. Solution Create a client script and check if the sales team is empty in the Sales Order record. If the… Continue reading Restrict the sales order creation if the sales team is empty

Restricting users to add items to sales order records.

Requirement The requirement is to either allow or disallow items to be selected on a sales order based on the user’s certifications and the items being chosen.If a user does not meet the criteria for selling an item when it is added to the Sales Order through the UI, a popup needs to notify the… Continue reading Restricting users to add items to sales order records.

Custom Popup Notification For BO Items

Solution: A popup notification will show while saving sales orders if any items are in backorder. The check box field called “In Active BO Popup Notification” will be created for the employee record. If the check box was checked then the back order popup notification will not show for the employee.  The popup notification has… Continue reading Custom Popup Notification For BO Items

Show alert message in Suitelet POST

/** * * @param scriptContext */ function alertMesage(scriptContext){ var html = ‘<script> alert(“The quantity should be greater than Zero”);window.close() </script>’; scriptContext.response.write(html) } The alert message will show and on clicking ok will close the whole suitelet page