Can we use Selenium webdriver for automating MS CRM 2015 based application?

后端 未结 3 2029
独厮守ぢ
独厮守ぢ 2021-01-07 05:57

Can we use Selenium webdriver for automating MS CRM 2015 based application?If not, is there any specific reason for that.

相关标签:
3条回答
  • 2021-01-07 06:50

    Since there is a duplicated question (Does Selenium suports CRM applications) asked recently, I'll provide my answer here.

    I have successfully implemented selenium webdriver automation with Dynamics CRM. The main differences between CRM and other websites are:

    1. Use of iframes. Be sure to switch to the correct frame that contains the element you wish to work on, e.g. driver.switchTo().frame(the_frame_id), or better yet, implicitly wait for the frame by using ExpectedConditions.frameToBeAvailableAndSwitchToIt(by)
    2. As mentioned by others, wait for loading times. But instead of hard sleeps or explicit waits, I found that CRM actually displays nice spinning "Loading..." messages while it's loading. So to wait for the message to go away before performing further actions, I've used ExpectedConditions.invisibilityOfElementLocated(locator_of_loading_dialog); or for some trickier ones where the visibility is driven by a different attribute value other than display, try ExpectedConditions.attributeContains(locator, attribute, value) - e.g ExpectedConditions.attributeContains(By.id("some_id"), "style", "visibility: hidden") .

    Other than that, it's just another web site.

    0 讨论(0)
  • 2021-01-07 06:50

    Although it will be lot of work CRM being a SPA but you can get your way out. Here is something i answered for a similar question, in order to avoid copying it over please see it here Selenium Automation testing in crm 2015

    0 讨论(0)
  • 2021-01-07 06:55

    Selenium can automate any part of a web page if it is based on HTML. So if you want to check it, open the CRM web application, open the browser console and confirm if all the elements required for your automation test are based on HTML.

    The non-HTML components of a web page cannot be accessed by Selenium. You might want to use Image Based testing tools like Sikuli.

    0 讨论(0)
提交回复
热议问题