Selenium_Select value from autopopulate field - selenium

How can we select a value from a field which shows text as auto populate in Selenium Web Driver?
Example :
1. We have a text field.
2. Enter some text like 'ab' in field.
3. It will show a drop down as per text.
4. Now we've to select a value from the drop down through Webdriver.
Could you please help me for the same?
Thanks,

Related

Element is not getting detected in Selenium if loads the table data using 'select number of rows"

Scenario is based on the 2nd column value I need to click on check box lie in first column.
Problem is by default table displays 5 rows of data, in this case the element is getting detected properly and check box works. But if the record is not in displayed 5 rows I have to use the number of item dropdown to load more rows in table in this case the elements has stopped detecting which is available in first 5 rows as well.
So far I checked no change in XPATH and page scrolls a bit so tried using Actions as well to move to the element and click but did not work.
Things seems to be working after using Actions/ActionChain instead of find_element()

Xpath Id of selected value/s in a list changes upon using or eliminating some values in the list - Robot Framework

I have this certain list which consists of unique values. The list is searchable and values can only be selected upon ticking the checkbox. Certain value can only be selected once.
Steps:
My problem is that when you search (ex. Value1) on the search field then the value1 will be displayed on the list with this xpath id
//*[#id='trustAccountForm']/div/div[2]/p[12]/label
Upon getting the xpath of (value1), we need to search another value for ex (content2) this value has an xpath id of //*[#id='trustAccountForm']/div/div[2]/p[9]/label
Now if you save the transaction which has (value1) as the selected value with the said xpath id..
then if your going to save the (content2) with the given xpath id you can no longer select (content2) since its xpath is changed upon saving of the (value1) since the number of values in the list decreases
How can it be solve? Is it possible to just select a value in a list without indicating the locator?
Thanks.

Can we compare value of a field in 2 different urls using Selenium?

I know we can capture the value of a field for each url individually. But is it also possible to compare the value captured for the same field in 2 different urls using Selenium tool for validation?
I searched over the web but did not get any conclusive results. Please advice.
Yes it is possible to compare the value of field from two different URL's
1). Visit the First URL-> Read the field value and store it in a Variable
2). Visit the Second URL -> Read the field value and store it in a variable
3). Compare the Values

Microsoft Access Search Using A Different Column

I have a ComboBox that has columns: Name, Nickname, and Code in it. Currently, it is set up to search based on Name as the user types in the ComboBox when the user would prefer to type the Code instead. Is there a way to set it up so the ComboBox displays like it is originally set up while allowing the user to search using the Code column? I know that I can easily put the Code column in front of the Name column, but the user would like to keep the format the same.
Simple answer: No. A combo box control will always search (autocomplete) the displayed value, which will be the first row source column with a non-zero width. The only way to achieve what you want would be to have two controls. You could have a combo box with Code as the first column followed by Name and Nickname, and then have a locked text box with Control Source set to =myCombo.Column(1)

Oracle Apex column link from LOV values

Can you please advise if below is even possible. Using Oracle 11g and APEX 4.2.6.
I have a data grid that brings all tasks from a master table. But show the task name via a LOV.
I am trying to add links, via Column links. But I must turn off the LOV to make this work. Which would give me link. But this is not very helpful.
Example below.
44193
Is there a way, so I can still use a LOV. So that the return value gives me the ID for the link, but the Display value gives me the anchor text.
Example below.
Weekend
Many thanks
I'm mostly used to Apex 4.1, but this approach should work.
You don't need an LOV. Your report query should include both the MAST_ID and the TASK_NAME columns. Hide the TASK_NAME column and set MAST_ID as the linking column. If you set the Link Text (under Column Link) to #TASK_NAME#, you should get the desired result. Display As should be left at the default (Display as Text etc).
They added a new feature now where you can add a link to your item under: "Link" attribute.