SelectElement and ng-select

692 views
Skip to first unread message

Maxim Dobroselsky

unread,
Aug 11, 2018, 10:00:53 AM8/11/18
to Selenium Users

Is it possible to use Selenium for ng-select elements? Previously on a site select elements were presented, but recently they were replaced by ng-select ones. My code relies on SelectElement class which doesn't support ng-select.

In particular I need Options property provided by SelectElement. Is there a way to operate by ng-selectwith Selenium?

Aniket Mane

unread,
Aug 11, 2018, 10:07:08 AM8/11/18
to seleniu...@googlegroups.com
Hi Maxim,
ng-select elements related to AngularJS and if SELECT class is not working you can store that elements in a list and then you cas use that elements as per the index.
and can you share that link with us so we can try that?? or if it is bussiness related then its okay\.

Thanks,
Aniket



On Sat, Aug 11, 2018 at 7:30 PM Maxim Dobroselsky <m.hal...@gmail.com> wrote:

Is it possible to use Selenium for ng-select elements? Previously on a site select elements were presented, but recently they were replaced by ng-select ones. My code relies on SelectElement class which doesn't support ng-select.

In particular I need Options property provided by SelectElement. Is there a way to operate by ng-selectwith Selenium?

--
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-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2f2dcc6e-6848-4d97-8fd7-ee21f9c584ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gangadhar Subramanian

unread,
Aug 13, 2018, 2:48:00 AM8/13/18
to Selenium Users
Hi Maxim, 

You can use ngWebDriver which is specifically designed to locate AngularJS elements. 
Hope this helps.

Thanks
Gangadhar

Romita Thakur

unread,
Aug 13, 2018, 3:30:56 AM8/13/18
to seleniu...@googlegroups.com
Hi Maxim,

Use Protractor for Angular app, you can use ng-model and ng select there.



Regards:
Romita

On Sat, Aug 11, 2018 at 7:29 PM, Maxim Dobroselsky <m.hal...@gmail.com> wrote:

Is it possible to use Selenium for ng-select elements? Previously on a site select elements were presented, but recently they were replaced by ng-select ones. My code relies on SelectElement class which doesn't support ng-select.

In particular I need Options property provided by SelectElement. Is there a way to operate by ng-selectwith Selenium?

--
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.

Maxim Dobroselsky

unread,
Aug 14, 2018, 4:50:20 PM8/14/18
to Selenium Users
Thank you all!

I decided to write my methods which use Selenium to work with ng-select structure and do what I need. I didn't find anything related to this element in ngWebDriver and Protractor, so I think it is the best solution - implement what I need manually.

суббота, 11 августа 2018 г., 17:00:53 UTC+3 пользователь Maxim Dobroselsky написал:
Reply all
Reply to author
Forward
0 new messages