how to click on a specific record that is just entered in selenium in Divs & grids - xpath

In my application, I have an option to open the popup menu(by clicking in a specific column of table) & then the function is called using click on any of the menu items
I added a record1, which will be appeared in table with other x,y,z records. SO now I have 4 rows in table.
I want to open popup menu of the record1(which is just created by my test) How can I do that?
All of the work in my app is done using divs. I am finding elements through XPaths but in this scenario I am not able to do the needful.

Related

multiple grid view open and fetch data in data base click the button (every single data rows placed in another grid view )

hi guys I have one problem if I select the dropdown list after show the multiple data in multiple grid how it is possible I am trying to complete please some one know that
after I click the grid open the popup window with a copy button , I click the copy button the popup window content should copy and when I paste after should paste the content

Dependent dropdown lists with selenium in Python3

I am writing a python script that should automatically download an excel file from a website. Yet, in order to generate the excel file, several drop-down lists need to be selected (eg.: Select continent, then select country, then select city... etc.). This means that I need to select one value from the drop-down menu "A" in order for the drop-down menu "B" to show the available values, once the I have selected a value in the drop-down menu "B" I can continue with drop-down "C", and so on.
The problem is that every time I select one value from one drop-down menu (say, from drop-down menu "A") the website is refreshed in order to show the values available for the subsequent drop-down menu.
So far I have been able to access the website with selenium while selecting only a value from the first drop-down menu (eg. Continent), however I am facing difficulties in dealing with the subsequent drop-down menus. Does anyone have an idea of how I could deal with this?
So far my code looks like:
from selenium import webdriver
from selenium.webdriver.support.ui import Select
driver=webdriver.Firefox()
driver.get("https://daten.ktbl.de/feldarbeit/entry.html#0")
element1=driver.find_element_by_name("hgId")
drp1=Select(element1)
drp1.select_by_visible_text("Bodenbearbeitung")
Many thanks in advance,
best
Chico
Well, found out:
wait for the ajax to load the website after the selection:
driver.implicitly_wait(20)

How to click on Web Table column's Web Button in following case?

I have one web table, in this I want to delete particular record by clicking on record's delete button.
I got the value of row but I am not able to perform click on web button of particular row and also there is 2 buttons in one column.
How to click on delete icon of particular row?
You need to set a reference to the item within the specific row and then click on it - something like this:
Set oLink = Browser("myBrowser").Page("myPage").WebTable("myTable").ChildItem(iRow,8,"Link",0)
oLink.Click
You will potentially need to amend the "Link" and the number 8 in your own code. iRow represents the row you are trying to interact with.
Essentially what this code does is set an object reference to the first item of type "Link", in column 8 of the table, then uses a Click event to select it. If your delete icon is a WebButton, then replace "Link" with "WebButton" for example. The final 0 in the command tells UFT to select the first element matching the object type - you might need 1 if your two icons are in the same column of the table.
Let me know if that helped.

Add record with ID, selecting NAME from another table

Can anyone, please, help me with Libreoffice Base form creation?
I have the following tables:
And I'm trying to add a form to enter new RESOURCES record with the following fields: [RESOURCE_NAME], [CURRENCY_NAME] and [AMOUNT]. But after 10+ tries I have not succeeded. I have tried adding it via wizard, selecting RESOURCES as main form and CURRENCIES as subform and vice versa. I have tried VIEWS and forms based on them. These tries only gave to me or no possibility to enter new record, either creation of the new CURRENCY.
I don't need to create new currency via this form, I only want to enter new Resource (only enter once, not to modify, not to delete). Since I don't want to remember all the ID's I want to select currency name via DropDown list.
Can anyone provide instructions about how to do it, please?
Thanks.
You do not need a subform for this - just create your form document with RESOURCES as the main form (only form).
You will need a listbox to enter the currency item. A listbox has two fields, a display field and a field that is saved in the table. You will set it up to display CURRENCY_NAME and store CURRENCY_ID.
When you create a listbox, the wizard that pops up may get you what you want. If the wizard falls short:
Make sure the form document is open in design mode: on the "Form Controls" toolbar, the leftmost/topmost icon of a pencil with a triangle should be depressed. If this icon is grayed out, close your document, right-click on its name and choose "Edit".
Right-click on the listbox and choose "Control"; this will open the properties window
On the tab "Data" change the "Type of list contents" to "Sql"
In the field "List content" enter SELECT "CURRENCY_NAME", "CURRENCY_ID" FROM "CURRENCIES" ORDER BY "CURRENCY_NAME"
The Bound Field should default to 1. If it isn't 1, change it to 1.
Close the properties window and save your form. It should work as you want now.
If you want a listbox inside a tablegrid: after you create the table, with the form in edit mode, right-click on the column name you want to change and choose "Replace with" and then "listbox".
Edited to include comment by OP about bound field needing to be 1

Oracle APEX default value not working on cascaded items

I have a blank page with a static content region (Template = Form Region). I select a project via a select list (there is only one project, so it automatically selects it). I then have a key popup lov (a popup lov that displays the description not the returned number value) from which I select a person to be in this project. I am trying to get the form to display the person I selected and saved previously when the form launches for the first time (since the project is chosen due to there being one). This works when you refresh the page, but it doesn't work if you log out and log back into the form. I tried using the default value with a sql query. I tried using a dynamic action that fires when the project changes; but neither approaches work. I fiddled with all the settings, but couldn't get anything to work. Does anyone know how to accomplish this in Oracle APEX?
I even added a refresh of the cascading popup lov to the dynamic action. I can see the hidden input item showing my defaulted value, but the popup lov does not display it on screen. Is this an Oracle bug?
Also in Javascript from the console
$s("P51_LINE_MANAGER1", "7104");
sets the hidden value, but doesn't display on screen.
$v("P51_LINE_MANAGER1");
does however return 7104.

Resources