I have a method in which I am trying to add 12 web elements: Simplified DOM elements in which I only need to get the text : I need to add all 12 web elements to my array and then make sure that the received elements contain the name “Iphone”, but when adding elements, there is exception: Answer iphoneSnippetList is
Tag: selenium-webdriver
Automate status checkbox to verify active/inactive
I wish to automate a scenario, where in a data grid I have a checkbox for Status for a user, whether the user is active or not, now what I am doing is: 1. Creating a list of checkboxes on the Grid, and if the size > 0 then I gettext() of the first record in the grid and store
How to verify ‘Open xdg-open popup’ in Chrome via Selenium Webdriver?
I am writing a testcase where if a certain link is clicked a “Open xdg-open” Popup is triggered in the chrome browser. I want to verify in my testcase if an “Open xdg-open” Popup actually appears. I tried to use the following Code block: However the “Open xdg-open” Popup triggers the NoAlertPresentExcpetion even though it appears in the browser. Do
addArguments(java.lang.String… arguments) method of ChromeOptions is giving error
For the below code of setting chromeoptions using addArguments() method is giving following error Code: This code was working fine with older version of Selenium dependency but now i upgraded all my dependencies to new versions for some reasons and it’s not working Selenium Dependencies: build.gradle: Java version I’m using: Chrome Version: Chrome Driver Version: Answer You miss the following
Able to Toggle to Full Screen in a MAP but not able to minimize it
Able to Toggle to Full Screen in a MAP but not able to minimize it This is my Xpath for both Maximize and Min : My Map is similar to the Map given in the link where the click here Any leads on this … Answer I think all it needs is basically an explicit waits in combination with worst
Multiple instances of browser opening up when running test through webdriver manager
I am new to Selenium, so basically whenever I ran my test, it would open up the URL which I have mentioned in my test. In my same Test I have also mentioned to fill the username and Password. But somehow once the browser gets launched and redirect to the URL, it opens up another instance of blank browser failing
How to link setpDefication and feature file in cucumber is not working
I’m new to Cucumber jJava and had this problem in the initial stages. I’m using the MAVEN project. I have created a feature file, stepDefination file, and Test Runner file. In the feature file, I have mentioned some scenarios and step definition files, write Selenium Java code, and the last TestRunner class I have created and mentioned codes. Answer Check
Pause code execution if progress bar is displayed
I use this code to pause code execution: Unfortunately the html code is changed this way: I tried to implement this code” But the code execution is not paused. Can you advise how to implement his properly? Answer See if this xpath works.
My code picks the value of only first item from product page
I want to get values of items like a discount, original price, discounted price, and then I retrieve the discounted price with calculation and compare with discounted price on the website I get. But the problem I face is my code only picks the values of the first item of the product page. Answer I updated your code a bit:
Selenium Web Driver Java – User and passwords Always used
I have many codes that I wrote the user and the password but I wanted one way of to declare and call in all codes. Is this exist? Answer If I understand correctly you need to loop a set of credentials. An example where usernames and passwords are stored as Map<String, String> object. You can loop all entries in one