Questions tagged [elements]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Richardson's user avatar
1 vote
1 answer
195 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] ...
Renata Cikova's user avatar
1 vote
1 answer
80 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-...
Shimul Ahmed's user avatar
0 votes
1 answer
133 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 ...
invzbl3's user avatar
  • 121
0 votes
1 answer
2k 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 ...
user55499's user avatar
0 votes
4 answers
442 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 = "...
harry234's user avatar
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 ...
Synthezx's user avatar
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 ...
Jitendra Sawant's user avatar
0 votes
0 answers
334 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 ...
TCAuto's user avatar
  • 1
-1 votes
1 answer
50 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....
Esraa Emad's user avatar