Questions tagged [elements]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
4 answers
379 views

Selenium Locators are not working for this site?

public class LoginPage { WebDriver driver; @FindBy(xpath = "//input[contains(@class,'oxd-input') and @name='username']") private WebElement userName; @FindBy(xpath = "...
0 votes
1 answer
105 views

How to capture the element using srcset attribute?

I'm trying to understand the difference between the data-srcset and srcset attributes. I need to get a photo by the srcset attribute, but I can only get it using data-srcset. I don’t really understand ...
0 votes
1 answer
1k views

Robot Framework how to set a variable in an xpath?

Trying to set a variable in an xpath that I can then replace the text in for a dropdown menu. Not sure if there is a better way to do this I have tried "Replace Variables" also from the ...
-1 votes
1 answer
45 views

Verify that 4 products are shown with € symbol

I want to verify from this website: https://demo.nopcommerce.com/. There are 4 products shown with the Euro symbol by using for loop. Code: List <WebElement> productcurrency = driver....
0 votes
1 answer
2k views

How to get specific data in a div with Selenium?

Let's say this website has frequently changed data (stores). I am also only interested in certain stores from my list. How do I get all the data of the first store from the top and from my list? I was ...
0 votes
0 answers
321 views

Imitiating the Appium Inspector 'Refresh' button functionality in code? (Java)

is there a way for us to refresh the application's elements present in the DOM? similar to the way you refresh the elements using the Appium Inspector's 'Refresh' button? driver.refresh() only works ...
0 votes
2 answers
2k views

How to iterate two list of WebElements and print the values one by one to perform some action

As you can see I Have two list and I want output like one from one list and second from second list following is my code please help me in this. Code in Selenium Webdriver in Java: @Test public void ...
1 vote
1 answer
62 views

How can i get an xpath or any other element for these drop downs, ? Select options or the (Sendkeys) works

How can I get an XPath or any other element for these dropdowns? Now for the first drop down with the value= 'Adrian Clarke,' I was able to get the Xpath and run it successfully. For the second drop-...
1 vote
1 answer
191 views

Problem to find element with appium, application is running - appium oen application

I have a problem with testing of aúúlivation. I have this code for net CORE using MS test net.CORE. public class IPTV { static WindowsDriver<WindowsElement> Sessions; [ClassInitialize] ...
1 vote
5 answers
2k views

Element not found in a runtime

I am encountering a very unusual thing, the one I haven't seen before. There is one element I needed to find for testing purposes, it is visible on the page and I can find its unique relative XPath ...