How to locate webelement created dynamically

47 views
Skip to first unread message

Nandini Banda

unread,
Aug 14, 2017, 9:15:46 AM8/14/17
to Selenium Users
Hello Team,
Greetings for the day,

I tried to locate the element dynamically , but  i am not getting succeeded it it.
So it would be great, if anyone could guide me how to locate the dynamic created webelements. 

Thanks in advance......
Eagerly awaiting for positive response.......

poobathy r

unread,
Aug 15, 2017, 1:20:41 AM8/15/17
to seleniu...@googlegroups.com
Please have a xpath(combination of static and relative xpath) that will solve your problem 

Or paste your html code here




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b224197b-13f4-4abf-b006-c377bbb47894%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ram prasath

unread,
Aug 16, 2017, 3:57:47 AM8/16/17
to seleniu...@googlegroups.com
Hello,

You can try using contains()

driver.findElement(By.xpath("//*[contains(text(), 'abc')]").click();

Note : There will be a constant text part in the element,you can you that.

On Tue, Aug 15, 2017 at 10:50 AM, poobathy r <poob...@gmail.com> wrote:
Please have a xpath(combination of static and relative xpath) that will solve your problem 

Or paste your html code here



On 14 Aug 2017 6:45 pm, "Nandini Banda" <nandini...@gmail.com> wrote:
Hello Team,
Greetings for the day,

I tried to locate the element dynamically , but  i am not getting succeeded it it.
So it would be great, if anyone could guide me how to locate the dynamic created webelements. 

Thanks in advance......
Eagerly awaiting for positive response.......

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Warm Regards,

Ramprasath  R

contact no: 9840840246

ama...@bufetedemarketing.com

unread,
Aug 16, 2017, 4:07:17 AM8/16/17
to Selenium Users
Hi!

I hope it helps you....
Reply all
Reply to author
Forward
0 new messages