Linked Questions

2 votes
4 answers
18k views

How to work with changing element id in the html code [duplicate]

I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time ...
Som Ghosh's user avatar
  • 197
1 vote
4 answers
8k views

What to do if Relative Xpath is keep on changing [duplicate]

Below are my xpaths and keep on chining, Element path <div class="dijitInline utilizationTitle">5.00%</div> Here need to capture values (5.00%).... Element Xpath //*[@id="...
vishal kaneria's user avatar
0 votes
2 answers
8k views

Dynamic ID locating element [duplicate]

New to Automation , I am using selenium with JAVA. I have come across a stumbling block our developers do not assign ID to our elements and JFS assigns it own ID , however the ID's are dynamic and ...
Soopa Stylin's user avatar
1 vote
2 answers
4k views

Not able to locate the web element with partial xpath and text [duplicate]

I have web element set like below .. <div class="dxnb-headerCollapsed" id="ctl00_LeftPanel_LeftNavigationMenu_nbMenu_GHC1"> <i class="fa fa-handshake-o fa-2x fa-fw" style="">&...
1234's user avatar
  • 487
1 vote
1 answer
4k views

How to write xpath for dynamically changing ID and ID is same for all the elements in the form [duplicate]

In my application one form is there having 10 elements.All elements are having same ID but with different number at the end.I want to locate all the elements.Can anyone give me xpath please. @FindBy(...
Jeevan's user avatar
  • 11
0 votes
2 answers
1k views

How to get unique xpath with dynamic @id? [duplicate]

Hi I am facing problem to identify cause @id is dynamic :- //div[@id='SubmissionWizard:LOBWizardStepGroup:LineWizardStepSet:WC7LineCoverageScreen:WC7LineCoverageCV:WC7ConditionsDV:5:CoverageInputSet:...
sidharth's user avatar
-1 votes
1 answer
575 views

How to write XPath if my ID is changing continuously? [duplicate]

//*[@id='post-9505']/h3/a/time //*[@id='post-9466']/h3/a/time //*[@id='post-9517']/h3/a/time In this id number is changing continuously, so how can i write dynamic XPath? please help me to write ...
sanu's user avatar
  • 1
0 votes
1 answer
2k views

I want to enter text in search text box and click search icon or enter [duplicate]

I am facing the issue . Kindly assist. The HTML Code snippet is attached I am getting the error as Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: ...
RinJai's user avatar
  • 1
1 vote
1 answer
2k views

how to get the unique id of a dynamic element in selenium webdriver [duplicate]

How can I get the unique id of the element in selenium webdriver. For example email id creation: Each time the system creates a unique id for the email id. How can we use that specific id in selenium ...
Megha's user avatar
  • 11
-1 votes
1 answer
1k views

How to handle if XPath are different for multiple sub-menu options [duplicate]

I have situation when i have click main menu options it will be display 10 different sub-menu options. In all sub-menu section is available 2nd sub-menu options which is available more than 20 menu ...
Aziz Shaikh's user avatar
-1 votes
1 answer
415 views

Automation Selenium - Dynamic XPath [duplicate]

In the below XPath, the index [1] is changing every time. Can we handle this? //button[contains(text(),'Action')][1] HTML: <button aria-expanded="false" aria-haspopup="true" class="dropdown-...
Payal Jain's user avatar
0 votes
1 answer
95 views

Trying to assert role = Button when using a dyanmic span id [duplicate]

I am trying to verify that there is a button on the page named Select. The Select button has a dynamic span id. This is what firebug is showing me: span id="dijit_form_Button_18" class="dijitReset ...
JJ Whispers's user avatar
0 votes
0 answers
28 views

How to apply a 'Loop' to map the row element where XPath changes whenever page get's loaded [duplicate]

How to map on to a particular row element say " NCC "where the number of the row containing that element changes whenever page get's loaded. Reference website-guru99 for(int i=0;i<19;i++) ...
merin babu's user avatar
0 votes
0 answers
17 views

Unable to locate element using string Actualtext xpath [duplicate]

package Practice_KingAllProg; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class ...
Sahil sayyad's user avatar
4 votes
5 answers
180k views

Trying to find span element by class and text with selenium c#

I want to click on Administration panel. The <span> contains a class attribute and inner text. I get an error saying "unable to locate element". What am I doing wrong? HTML: <div class="...
nirali's user avatar
  • 41

15 30 50 per page