Selenium and Angular

1,906 views
Skip to first unread message

Fred Ericko

unread,
Oct 16, 2012, 12:07:06 PM10/16/12
to ang...@googlegroups.com
It seems like Selenium test framework does not work with WebApp created via AngularJS. Any tip to get this working. Basically, i face the same issue as this fella

http://stackoverflow.com/questions/11620850/selenium-on-textfields-that-triggers-events-a-way-to-mimic-human-interaction

Paul Hammant

unread,
Oct 16, 2012, 12:11:46 PM10/16/12
to ang...@googlegroups.com
Your claim that "Selenium test framework does not work with WebApp
created via AngularJS", isn't my experience. It does work with
Selenium2. That Stackoverflow entry looks to be citing Selenium1.
Selenium2 has been in regular use for four years, why are you using
Selenium1 ?

- Paul
(co-creator of Selenium-1 and user of Angular since 2009).
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to ang...@googlegroups.com.
> To unsubscribe from this group, send email to
> angular+u...@googlegroups.com.
> Visit this group at http://groups.google.com/group/angular?hl=en.
>
>

Fred Ericko

unread,
Oct 16, 2012, 3:43:56 PM10/16/12
to ang...@googlegroups.com
I am currently using Selenium IDE from this link using firefox


Is this 1 or 2. This is the latest from seleniumhq.org

andreas.s...@googlemail.com

unread,
Jan 15, 2013, 2:36:45 PM1/15/13
to ang...@googlegroups.com
Basically i am facing the same problem. The difference is we are using sahi instead of selenium for browser automation however the cause of the problem might be the same

We have done a simple angular wrapper for the jQuery autocompleter and when testing it using SAHI one can see SAHI typing into the input field (i even simulated a "real" human interaction by focussing on the field manually then submit keypress events while waiting in between) but the related $scope variable simply does not change :(. The underlying jquery component however is reacting properly (so we are using its term variable instead now as a workaround). SAHI/Selenium seem to do something which doesn't trigger angular changes and i am not sure what this might be :( any hints?

Dan Walker

unread,
Feb 5, 2013, 8:24:02 AM2/5/13
to ang...@googlegroups.com
I had the same issue using Selenium-IDE testing Angular-JS form fields.  After spending endless minutes ;)  going through every combination of focus, clickat, keypress, etc commands in Selenium-IDE, i found that send the text to the field using sendKeys did the trick. 

See my answer to the post below here:: http://stackoverflow.com/questions/11620850/selenium-on-textfields-that-triggers-events-a-way-to-mimic-human-interaction/14708533#14708533

Steve Mosley

unread,
Feb 5, 2013, 5:13:55 PM2/5/13
to ang...@googlegroups.com
Selenium IDE is for Selenium 1. 

Selenium 2 is also commonly called WebDriver

Krishna

unread,
Feb 20, 2014, 9:06:40 AM2/20/14
to ang...@googlegroups.com
 
We are using Selenium 1 with C# and selenium.typekeys are not working with our new Angular JS screens. Typekeys are working in our old screns but with new angular js screens it wont do anything. selenium.type is typing the text but when we try to save the page we are getting the error saying text fields are blank but we can see the value in text box. we have to fire an event before saving the page i think but selenium.typekeys or selenium.keypress or any other commands are not recognizing by angular JS screens.we cannot update to selenium 2.0 version because we have our customer browser and selenium 2.0 will not allow custom browsers. we want to stay on selenium 1 and need fix for this. Any help will be appreciated. 

Viaczaslau Balashevicz

unread,
Jun 27, 2016, 3:10:18 PM6/27/16
to AngularJS, kcs...@gmail.com

It`s really not fixed

Reply all
Reply to author
Forward
0 new messages