Assignment 2 selecting drop down item


#1

in ui path assignment 2 we have to select year and month from the drop down box using its selctor.so we have to replace the aaname value with a variable. bt it doesnt work this is the selector i got from ui explorer

this is the selector I’ve used for the click activity.

how can i select an item from a drop down.need your help.


#2

Well i hope the whole thing is in one line, if not remove the newline and make it.
Second, you only may need the aaname, type and parentid attributes. rest you can remove.

Hope it solves your problem.


#3

Should look something like this

"<html title='ACME System 1 - Reports - Download Monthly Report' /><webctrl aaname='"+in_Year+"' parentid='searchForm' tag='A' />"

Let me know if it solves your problem


#4

@nadim.warsi error was corrected. but it isn’t working . when i run the the process it does nothing and ended the process


#5

what is happening?
What is the log showing?


#6

problem solved i didn’t checked the simulate click checkbox.thank you so much for you help


#7

Perfect. :slight_smile:


#8

@nadim.warsi another problem there are rwo drop downs but both are having same selectors
bububub
what shouldi do??
vcvcvcvc


#9

I have responded in the other thread, please try and keep to one thread so the forums are “cleaner” :slight_smile:


#10

it wont be same since you have months and year


#11

but it doesn’t recognize the element.


#12

Which action are you using for this? Click to open the drop down then another click to select the option you want? As you might be confusing it by parsing through your month variable as the aaname of the element, which could be fixed?


#13

I see this issue happening now and then when we are trying to use the selector for the drop down.
Your selector is wrong.

It should not be tag=‘Button’ rather tag=‘A’

change that and it will work. :slight_smile:


#14

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.