Selenium VBA - Won't tick tickbox - html

I have a spreadsheet that is scraping some data off a website.
One part of my program is to tick a tickbox.
I'm able to find the element without any problem using FindElementbyCSS but clicking it doesn't tick the tick box.
this is my code
.FindElementByCss("label[for='chkStdDev1']").Click
This is the tickbox (the first one, second one is ticked by default)
and this is what I see when I inspect the element
Was nice and happy when I managed to find the element correctly, but now it's driving me a bit insane as it won't tick!

You are trying to check the label rather than the checkbox type input.
Use
.FindElementById("chkStdDev1").Click

Related

Why is label in header of continuous form in MS Access not clickable?

Update **
I found that the event is firing but there is no visual clue for the user. Is there a way to make it obvious to user that these labels are clickable.
Adding a gif to illustrate the issue.
I looked for an obvious answer on web but I could not find the solution. Hopefully, it is a property setting somewhere.
I have a continuous form with labels in form header. We have an event on double click on one of the labels. However, when the form is displayed, none of the labels are clickable. If it allows us to write events (click / dbl click) then obviously these labels should be clickable.
I looked through the properties of label but there is no "enabled" property. So, question is that how to make the label clickable? I hope it is a simple property setting.
Thanks
Labels are fine for clickable..i use them a lot to perform various operations like dynamic sorting.
EDIT : because i just noticed it...when textboxes/checkboxes/optionboxes are dropped in a form the labels that are associated with them don't have any events...you have to put explicitly an unassociated label to have its events exposed

I need to Click on table cell value of a web page in automation anywhere tool

I am new to Automation Anywhere. I am trying to click on specific cell value of a web page table.
I have cloned the table object and applied action "Click on cell by index" provided by automation anywhere tool on specific row and column.
Secondly, I tried Mouse Click functionality but, on search base position of cell where to click will not always be the same that's why cant implement mouse click.
Screenshot is attached what I have done so far, Nothing happens by click on the cell. I want to click on the value present in the cell.
I want to click on highlighted portion mentioned in below screenshot:
Any kind of help will be appreciated.
Could you attach a screenshot of the full search criteria? I'm sure it has to be something with the path and DomXpath.
Make sure that below points have been checked:
The object properties should be unique and non changing. This is required to identify the object correctly during execution
Check whether object cloning is working properly with current screen resolution. If not, you need to change the screen resolution

Microsoft Access z-index property

I have a form including listboxes. I'm trying to change order of listboxes. I tried bring front or send back but they are not working in form view. I found z index property for arranging their priority. However, following codes are not working. Is this correct way to do it? Or is there any other way with or without codes to do this?
Me.Controls.SetChildIndex (Me.List0 , Me.List1)
Thanks for any help.
Without using code:
You can change the z-order by right-clicking any control and selecting "Position" then selecting either "Bring to Front" or "Send to Back."
Unfortunately, Access does not support the ZOrder method for manipulation using code. Microsoft Forms does support the ZOrder method which can get confusing when it comes up on Access Help.
As I reread your question, I wonder if you're talking about tab order. If so, right-click and bring up "Properties," select the "Other" tab, then adjust the "Tab Index" property. Also, make sure that the "Tab Stop" property immediately beneath is set to "Yes." In code you would use FormName.ControlName.TabIndex=0 to set a control to the first tab position.
Hope this helps!
Reference: Personal experience (and hours of frustration)
docmd.RunCommand acCmdDesignView
forms("form1").Controls("text0").inselection=true
docmd.runcommand acCmdSendToBack '(or docmd.runcommand acCmdBringToFront)
docmd.RunCommand acCmdFormView
Also, ZOrder is still not supported by Access 2016. As such, I have not yet learned a way to write a single line of code that puts a control in between two others, I just send the middle to back and then the back to back, and expand this to however many controls have to overlap.
And last, even though you use the VBA for ZOrder, your English does ambiguously sound like forms("form1").Controls("text0").TabIndex=34, which as Olek suggested, is also quite simple.
I did this on one Access form: The control I wanted on top I just cut and pasted it back to the form, then moved it over the one I wanted to cover. In this case, it was a text box (bound), almost the same size as a combo box (unbound); only the dropdown of the combo extended a bit to the right of the text box, so when the form was loaded the text box looked like a combo box. The user clicked the dropdown and made a choice and the record(s) pulled up were reflected in the text box.

Command Button Wizard doesn't start

I want to create a navigation button on a web form. (I use MS Access 2010 - Web database). I dragged the button on the form (the Control Wizard option is selected) but the Command Button Wizard does not show up
I double clicked on the button, but it just let me to edit button name. I also tried to click anywhere on the form - still nothing
How do I show Command Button Wizard Menu for my "Command120" button??
You have to enable the control wizards first. Go to the drop-down arrow at the end of the control group on the design ribbon and select use control wizards. Then insert the button again.
I had the same issue. I created the button the form in design mode and this seemed to get it working in layout mode again.
After all of the answers above, I still could not get it to work. What appears to be the problem in my case is that the wizard will not work inside of sub-forms. The solution is to:
Open the sub-form directly instead of designing it inside the parent form.
or
Create the button on the parent form, then cut or paste it to the
sub-form.
So this is a really old question and but I have found out the answer to the problem and will share in hopes that it may help someone in the future.
If the form is a "Web Form" the control wizards do not work. It must be a standard form. As far as I can tell there is no indication of this anywhere. To see the difference see the image below.
The form on top is a regular form and the one whereas the one on the bottom with the little globe is a web form. In order to create this kind of form Go to the create Tab and DO NOT select the options in the menu. You must select blank form from the Client Forms drop down as shown below.
There you will find the option to create forms that don´t have the little globe and those are the forms that work with the control wizards. Hope this helps someone else! This was a real pain to discover.
Enable the "Use Control Wizards" At Design tool tab.
Then add the button to Design are.
That's all
Make sure your wizard button in the drop down arrow is on if it is turn it off and then turn it back on then recreate your button. That worked for me in a layout view. Good Luck!!
If Sandy's answer didn't work for you, try to switch first to Layout View then proceed.
It worked for me.
I actually landed here looking for a solution. While I didn’t find it here I did figure out what I was doing wrong.
The action wizard only works with boundControls. So the area you are trying to use is not connected to a relevant table or field.
1st off make sure that you have the wizard activated/Turned on then proceed.
Option 1 [From LayoutView]
I was able to get the wizard to work by 1st deleting the button.
Then delete the cell you are dropping the button onto.
Then I stretched the cell with a field name to the right where I wanted my button.
Then I split the fields Horizontally.
Last I dropped the button on the cell I just created adjacent to the field & voilà the wizard came-up.
Option2 [From DesignView]
Again remove what isn’t working 1st. Then drop the button where you want. The wizard should pop right up. The button won’t be where you wanted it to be, but you can always move it once you get it setup.
I read that you tried it in DesignView & it worked, but crashed Access & you lost your Macros, so just a reminder to everyone try this with a copy or test db.
HTH
Links I found helpful.
+--------------------------------------------------------------------
https://stackoverflow.com/a/13010098/6158704
https://support.office.com/en-us/article/Introduction-to-controls-4a8cf5f2-d739-4ae9-b1e0-510c3f4d6975
+--------------------------------------------------------------------

How to hide a MatrixRow in SSRS 2005 based on an expression?

I was wondering if someone can tell me how I can hide a row in a matrix on an SSRS 2005 report. I have tried hiding the specific TextBoxes, but when I do that, I still get whitespace where the TextBoxes would appear, which is pretty worthless.
According to research I have done online, there is supposed to be a visibility/hidden property when I right click the row header and go to properties, but I don't see that there. Below is a link to a screenshot of what I get for the properties:
http://imageshack.us/photo/my-images/696/ssrs.jpg
Where do I find this property? When I expanded all the groups, I didn't see anything related to visibility.
Is it possible to hide this row bases on an expression? Please let me know.
Thanks
New users apparently cannot answer their own questions without waiting 8 hours. It said to use the edit function instead. I'll marked this as answered later.
I think I found what I was looking for. I got the desired result anyway. Since I hate coming to posts and seeing "Thanks, I figured it out" without any other detail...
Right Click on the Matrix, that is to say, right click on the dotted line with the resizing handles that outlines the matrix. After that click properties. This should bring up a Matrix Properties dialog box. Go the Groups tab (5th over). To change the visibility of a row/column, click the "Edit" button. This brings up another dialog box. Visibility is the 4th tab.
Hope that saves someone a headache.
I think I found what I was looking for. I got the desired result anyway. Since I hate coming to posts and seeing "Thanks, I figured it out" without any other detail...
Right Click on the Matrix, that is to say, right click on the dotted line with the resizing handles that outlines the matrix. After that click properties. This should bring up a Matrix Properties dialog box. Go the Groups tab (5th over). To change the visibility of a row/column, click the "Edit" button. This brings up another dialog box. Visibility is the 4th tab.
Hope that saves someone a headache.