web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Selenium select drowdown

(0) ShareShare
ReportReport
Posted on by

Hello guys,


I'm looking into automated testing with Selenium. All is fine while testing except selecting values in a dropdown list. When i try to select a value, the message  information: Element is not currently visible and so may not be interacted with, is shown. Does someone know how to select a value?

I'm using :

new SelectElement(driver.FindElement(By.Id("my_selection_i"))).SelectByText("Yes");
driver.FindElement(By.CssSelector("option[title=\"Yes\"]")).Click();


Tnx

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dhaval mistry Profile Picture
    810 on at

    In CRM option set is not use as dropdown control. (they are using DIV & Selection OptionSet)

    So if you try to access direct element then it would not work.  

    Kindly follow below screen shot 

    Before selecting option set there is not select control exist.  (Find screen shot below)

    5314.Untitled1.png

    After selected attribute (Customer Rating - Option Set) select (dropdown) control exist 

    5314.Untitled1.png

    So, You need to find some solution to click on that control (attribute customer rating in above example) so option set get generated. After that below your line will work. 

    new SelectElement(driver.FindElement(By.Id("my_selection_i"))).SelectByText("Yes");
    driver.FindElement(By.CssSelector("option[title=\"Yes\"]")).Click();

    I wish my finding will guide you to correct path, if it works  please mark this answer as suggested answer. 

    Thanks in Advance!

  • Community Member Profile Picture
    on at

    How are you getting control of Text box for fields on Opportunity form? How to find control for Look up?

  • Community Member Profile Picture
    on at

    Is there any solution to control that field? Which search property can be used?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans