Selenium Find by Css help needed.- - c#

Not a developer here.
I have two checkboxs with No IDs. I am find with selenium when I have an ID. But in this case the table was created with jquery datatables and no process is present to auto assign the IDs.
In css the line below would should give me the first row in that table.
#CompanyTableTable tr:first-of-type input[type="checkbox"].CompanySelector
This one selects the second entry.
#CompanyTable tr:nth-of-type(2) input[type="checkbox"].CompanySelector
I think I should be able to use this inside the following? But all my attempts return different formating errors.
driver.FindElement(By.CssSelector("**Css_Here**???")).Click();
Thanks in advance for any help.

Thanks everyone.
I had to add a wait and the below worked for grabbing the second checkbox
driver.FindElement (By.CssSelector("tr.even > td > input.CompanySelector")).Click();
I installed the Firefox IDE and ran the interface and grabbed the formatting from that.

Related

Do Not Page Break on Table in Aspose PDF?

I am trying to stop Aspose PDF from Page Breaking in the middle of my table (C# .NET). We dynamically add information to this PDF, but this table will always be two rows.
I have found the table.isBroken attribute always returns true and row.isRowBroken always returns false (from Aspose). This does not help me to stop the page from breaking in the middle of this table.
I have also tried adjusting the margin to no avail since our pages are dynamic. Google and the Aspose forums and documentation have revealed nothing. I have turned to asking a question here on stackoverflow.com.
Any ideas or suggestions would be helpful! Thank you so much for your time!
You may use RepeatingRowCount property of Table class to set header rows count. It will keep these rows together on page break.
I'm Tilal,developer evangelist at Aspose.
Aspose.Pdf.Table table = new Aspose.Pdf.Table();
table.RepeatingRowsCount = 2;

Page header is not repeating in rdlc report when two tablix is having two dataset

I'm having a one strange scenario. Before going into it, I want to say that I'm very beginner to this rdlc report. Hence I'm struggling to resolve it.
What I want is ?
I want to show the page header in all the pages.
What I have is ?
I'm having one header part which is having few textboxes and the body part which is having two tablix. Here, the two tablix consists of two difference datasets. The first tablix is grouped under Group1.
What the issue I face is ?
The first tablix consists of 50 records, that occupies three pages. In all the three pages, the header part is visible. When the second tablix is coming into the fourth page, all the header part turned into # error. Really struggling a lot to solve this.
What I tried is ?
Opened Advanced Mode in the Groupings pane.
Clicked static and changed the Keepwithgroup = after and Requestonnewpage = true.
Note : I did this for the two tablix but nothing works. Also I'm not sure that this will give the way.
Also I checked in report xml file also.
Checked Repeat row on each page and Repeat column on each page.
Hope you understand my problem. Kindly guide me where I'm making mistake. Thanks in advance.

remove empty rows from lookup edit in devexpress

I'm working on a winforms application and i have a look up edit field.
The data is loaded but i got many empty rows in the lookup edit.
Any help?
It look like you do not provide unique values in to lookup function. Moreover your select returns "empty" values. There was a similar discussion on DevExpress forum: http://www.devexpress.com/Support/Center/Question/Details/B207643

How to add a Datagridview into a Scatterviewitem?

I am trying to display the contents of different tables dynamically using scatterview, is there an easy way to do that. Right now I have the results of a query in DatagridView and I want to add it to a ScatterViewItem. I tried directly assigning, however I must be doing something wrong here. Do I need to bind it to the xaml code?
dgv = QueryResult();
svi.Content = dgv.DataSource;
The answer for this question was already there, my mistake I did not search that well.
The last post in :
Can I programmatically add a row to a WPF datagrid?
Moderators please flag appropriately.
Thanks

RDLC reports: Show textbox value if first row on page

I have an old report written by someone else and don't want to change it too much. Each data row has a field at the beginning that is populated with the Category name if it is the first record for that Category and is left blank for all the others. A total line follows at the end of a Category section.
I works fine except when there is a page break between the first record and the last. In this case it is hard to tell what the category is since it is on the previous page.
My question is if there is a way to tell if a row is the first on a page? I tried
=IIf( (RowNumber(Nothing) = 1), Fields!DepartmentDescription.Value, "")
but that only shows the category for the first record in the category (which is already done using).
RowNumber("tblMain_DepartmentGroup") = 1
Not the first record on the page.
Thanks for any help.
You could have easily used the First() function. It literally receives and uses the first value it gets from the data collection.
Yes, it's possible. No, it's not easy. It would require some custom VBscript code (to be found in Report Properties). You might be trying a wrong approach.
In this case I would recommend to repeat some of the heading on new pages. Select 'Advanced Mode' at the little arrow next to Column Groups. In your row groups, a couple of extra (Static) items appear. Select the correct ones, and set 'RepeatOnNewPage' to true.
To give us some more context, it might be useful to know what you want to achieve with this.

Categories

Resources