I made a stand-alone GUI for my Selenium project, and I noticed that after using it for a while, I had 10+ chrome drivers opened in task manager. I realize this is because driver.quit() is never called. I need to make it to where in the event that the chrome browser is closed, the driver quits. How do I do
Tag: selenium
Is there any get body tag method for WebElement class in Selenium Java?
I’ve been trying to get body of pages within HTML source. I’ve been trying it with WebElement Class. I can’t access invisibilityOfAllElements method or let me say it throws error. I’ve written code like that: waitbody is object of WebDriverWait Class that I’ve defined. Eclipse highlights underline of invisibilityOfAllElements. Is there any idea to solve this? Thank you. Answer invisibilityOfAllElements()
Connecting to OUTLOOK365 from Selenium Java
I have an application that sends a verification code to my Email after entering credentials. I need to read the verification code from my inbox. I am using Outlook and my organization uses the MAPI protocol for OUTLOOK365. Can anyone help me with this? Answer Using the Graph API one can access the Outlook. you need to register in Azure
Appium – AUT is not installed
I am testing an iOS application (on a real device) and encountering the following error: It would be helpful if someone could point out why the Selenium is throwing this error. I am able to manually connect to the UFT Mobile device and it works fine. My code is: The partial stacktrace is attached here https://pastebin.com/npcDyz2a. Answer After so many
Automating a login with out providing the password via selenium Webdriver
I am trying to create an automated test to one of my accounts. I have manage to do so but i have to provide the password via driver.sendKeys(). Any idea on how i could automate this part without providing my password? I have attached the code below Answer There are multiple ways to avoid password plain in your tests, here
I am getting Null pointer Exception while fetching data from the excel sheet [duplicate]
This question already has answers here: What is a NullPointerException, and how do I fix it? (12 answers) Closed 2 years ago. Code: } I am fetching the data from the excel sheet while performing test I am getting below error. Error: [Utils] [ERROR] [Error] java.lang.NullPointerException at dataDrivenFramework.dataDrivenFramework.ExcelDataConfig.getData(ExcelDataConfig.java:31) at dataDrivenFramework.dataDrivenFramework.ContactUsFormTest.formData(ContactUsFormTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) Here
I would like to fetch text with color from web table and print in excel using selenium web driver and apache poi
I get color of the text and stored in ‘textColor’. Now i need to pass this color to font.setColor. I mean instead of hard code color, i need to pass the textColor to font.setColor which mean i need to place it instead of Light_ORANGE. Could anyone help me to fix this. At the end i need to extract the text
How to close all child processes in C#
C# code: I am calling a java.exe from C# windows application. java.exe is used to test some websites. Java using Selenium to test the webpages by opening default web browser. It will open 3 to 10 times browsers and test the test cases. I want to add stop button in C# application and when we click it then it should
Selenium and Java: Finding nested elements without good id-s or selectors
I’m having some trouble finding the text contents of elements in a page, where – sadly – the hierarchy of the small kings creating common components for the Angular applications makes it all but impossible to impose intelligent selectors for the markup. This is the list in question, with all the tags from : Java code: I’m unable to get
Selenium how to get all elements inside a WebElement
I’m trying to get all the elements inside a selenium WebElement, for example: I want to get a list of all the elements inside including child elements, like so… div element header paragraph element paragraph So I’ve tried this element.findElements(By.xpath(“*”)) but this would return only element element So then I tried a recursive method to get all of the childs