What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-01 07:55:21
cross browser testing in testng
I achieve it with xml file. In TestNG is quite simple to do parallel testing. . First I create TestNG xml runner. Then I create suites or test tags in the xml runner. In these tag, I point to package or class I want to run. Then I add and option like par... Add solution -
Other 2022-02-01 05:26:17
jenkins integration
Jenkins is 1) Open source automation server 2) Helps to automate the non-human part of the software development process 3) Allows continuous integration 5) In my company Port is 8081 localhost To run my project in Jenkins 1) I need to Login Jenkins acc... Add solution -
Other 2022-01-30 20:20:49
python notification image
import winrt.windows.ui.notifications as notifications import winrt.windows.data.xml.dom as dom nManager = notifications.ToastNotificationManager notifier = nManager.create_toast_notifier(r"C:\Users\Admin\AppData\Local\Programs\Python\Python38\pytho... Add solution -
Javascript 2022-01-29 22:25:18
XMLHttpRequest() check if file exists
function UrlExists(url) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari var http=new XMLHttpRequest(); } else { var http=new ActiveXObject("Microsoft.XMLHTTP"); } http.open('HEAD'... Add solution -
Javascript 2022-01-28 21:31:45
how to add script before </body> in magento 2
Add referenceContainer code in layout file app/design/frontend/<vendor>/<theme>/Magento_Theme/layout/default.xml Before body end <referenceContainer name="before.body.end"> <block class="Magento\Framework\Vie... Add solution -
Kotlin 2022-01-28 16:26:30
kill other apps in kotlin
// add this permission to AndroidManifest.xml <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/> //and use this code to kill the process val am = getSystemService(Activity.ACTIVITY_SERVICE) as ActivityMana... Add solution -
Other 2022-01-28 16:20:08
ionic 5 make app portrait only
If you want to restrict to portrait mode only on all devices you should add this line to the config.xml in your projects root folder. <preference name="orientation" value="portrait" /> After that, please rebuild the platform b... Add solution -
Java 2022-01-27 18:41:28
java read xml
String dir = System.getProperty("user.dir"); File inputFile = new File(dir + File.separator + "dats.xml"); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilde... Add solution -
Java 2022-01-27 18:05:23
java code to get all leaf nodes of a xml file
try { final Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("input.xml"); final XPathExpression xpath = XPathFactory.newInstance().newXPath().compile("//*[count(./*) = 0]"); final NodeList nodeList ... Add solution -
Other 2022-01-23 21:16:08
XDocument
<Departments> <Department>Account</Department> <Department>Sales</Department> <Department>Pre-Sales</Department> <Department>Marketing</Department> &... Add solution