error: Object reference not set to an instance of an object (background steps...
I have a User Login file consisting of 4 steps which only talks about how the user is logged into the application. Now after I have written those as background steps in my cucumber feature file I have...
View ArticleHow to call API/Method into selenium Test for verification
I did do my best to erase the sensitive information but if someone see's any please help me erase it thanks.I have written a program in which I am getting the information about an entity from/with API...
View ArticleValidate second column is sorted for first column duplicates
I have two columns columns with identical row count, column 1 is "FirstName" and column 2 is "LastName". I do a multiple sort by sorting the first column ascending, then sort the second column...
View ArticleHow to attach dynamically generated .html files in email using Selenium+Java
I use Selenium+Cucumber+Junit framework to automate test scripts in Java. The test results are shown in Cucumber extent reports. I implemented re run failed scenarios mechanism as well in my framework....
View ArticleHow to get value of WebElement
I am trying to loop through table elements on a page of our ERP system.Based on a question I asked before I thought this would be a slam dunk - but I cannot figure it out.Here's the latest code I've...
View Articleselecting a drop down item from a menu selenium python
So I'm a little stuck! I'm trying to select an item from the 'All reviews' drop down however it doesn't interact like a where each item I could select the element of and then click it.Instead the acts...
View Articleclick a button in input tag using selenium
I want to click a button inside a input tag using selenium in python<input type="button" data="some data" value="Buy now!" class="some class">above is snippet of code, i am getting error with.and...
View ArticleUnable to launch URL in edge browser - Selenium Java
I am trying to automate in Microsoft edge browser. I referred to the below links to do it and I am able to launch the browser, but it's failing to launch the URL. Can someone please help me.Selenium...
View ArticleJunit pass some values from @Test methods into a @Rule method
I use Junit to run tests as part of Selenium framework. I need to record some values from the actual test methods into another method. @Rule public final RuleChain rules = RuleChain.outerRule(...
View ArticleWinium Driver switch from Desired Capabilities to DriverOptions
I ave been using Winium Webdriver for Windows Automation for now over a year. I also managed to update the supported selenium package to version 3.141 without changing a whole lot. I would still like...
View ArticleHow do i fetch the text which is a part of grandparent?
How do i fetch the name "JAFFERYI ADI" from the following html code? Have to fetch the name within for loop every time name will be different only the word 'years' will be common. I tried with...
View ArticleChoose file name depend on parameter in command line running pytest
I have a project with structure the same as this: https://github.com/RomanBaggins/Test_automatisation_final_project. In conftest.py i get parameters from cmd. In one of the functions in mane_page.py I...
View ArticleProtractor won't run chrome
Protractor was running fine but suddenley won't run chrome anymore. This is mye current configuration: exports.config = { baseUrl: 'http://localhost:1384/#/', framework: 'jasmine', seleniumAddress:...
View ArticleAllure report screenshots is not taken when test got failed
I have made an TestListener and implement method which should make screenshot when test got failed. But if test got failed screenshot is not taken but I don't know why. If method takeScreenshot() is...
View ArticlePython Selenium ChromeDriver Not Reachable
So I'm unable to figure out why I am getting this exception. When I run the chromedriver alone I get:Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on port 9515When I try...
View ArticleMost basic Selenium webdriver "Hello World" fails miserably
My selenium webdriver 'hello world' program is failing. Please advise.I spun up a new Ubuntu image and here is my setup:Ubuntu 18.04 with Google Chrome installed Ruby on Railsselenium-webdriver gem...
View ArticleUploading file in Selenium using sendKeys() is not working
I am unable to upload files using sendKeys(). This is my codedriver.findElement(By.xpath(Locators.browseFlagIconBtn)).sendKeys("D:\\Images\\icons.png"); I have an input tag of type file for file...
View ArticleSelenium standalone server with Apache Tomcat server
I am currently using the web driver and selenium grid and want to connect selenium standalone server with apache tomcat. Pls share with me if you have any ideas.
View ArticleClicking all buttons in tag in loop using Selenium Python
I have a problem. I need to click in all buttons (first is the one I marked, and then to the end of <li> tag) in a for loop, using Selenium Python. Every button has a different text and value....
View ArticleSelenium vs Cypress.io
I am working on a technical piece and need your assistance on the topic of Selenium vs Cypress. io. How has experience of work with these two frameworks, which of them in your opinion is the best one...
View Article