Posts by Wellington Fernandes • 101 points
12 posts
-
0
votes1
answer850
viewsA: Collect image link with python , Selenium and webdriver
If I’m not mistaken, the find_elements_by_xpath returns a list of all elements that obey xpath. Try to use the find_element_by_xpath passing the xpath using the ID, thus:…
-
0
votes1
answer88
viewsQ: Datetimepicker considering day as month
I have an inputText that I created for date, it is initially filled with a Datetime of my Model that is populated: @Html.TextBoxFor(model => model.Data, "{0:dd/MM/yyyy}", new { @class =…
-
0
votes3
answers8705
viewsA: How to pick up the text from a span?
I guess that’s it: var elemento = browser.FindElement(By.Id("task201")).Text; or var elemento = browser.FindElement(By.Id("task201")).GetAttribute("innerText");…
-
0
votes2
answers686
viewsQ: Can you create in C# a String array type property with 2 positions?
I have the following properties in a model: public List<string[]> Imagens { get; set; } public string[] Video { get; set; } public string[] Audio { get; set; } There in my Controller I am…
c#asked Wellington Fernandes 101 -
0
votes2
answers119
viewsA: Object does not exist when one foreach is inside another, except during debugging
Thanks guys, I think the problem was that the deferred was not ready at all. (I think). I decided using the When of the DOJO framework so: var deferred = deferreds[0]; var teste; for (var i = 1, max…
javascriptanswered Wellington Fernandes 101 -
4
votes2
answers119
viewsQ: Object does not exist when one foreach is inside another, except during debugging
In my code I consulted 2 services and placed their results (objects) inside an array called deferreds. These objects have a property called results, which is another array. I need to take the first…
javascriptasked Wellington Fernandes 101 -
2
votes1
answer535
viewsA: Capture results using Htmlagilitypack
I wonder if it works? var links = doc.DocumentNode.SelectNodes("//a").where(x => x.innerHTML == "2");
-
0
votes1
answer40
viewsA: How to pass an object to the javascript DOJO widget builder?
I ended up getting it in trial and error. I don’t know why it worked like this, but I had to pass the properties individually, getting like this: var atualizaWidget = new AtualizaWidget({ 'mapa':…
javascriptanswered Wellington Fernandes 101 -
1
votes1
answer40
viewsQ: How to pass an object to the javascript DOJO widget builder?
I’m trying to pass an object I created as a parameter in the widget builder. The object even goes and I can set my property with it, but as soon as it leaves the Builder it breaks. This is where I…
javascriptasked Wellington Fernandes 101 -
0
votes4
answers2850
viewsA: Selenium cannot find by id
Try to put two backslashes before the :, like this: driver.findElement(By.id("idRoleCheck\\:0")).click();
-
1
votes1
answer1002
viewsA: To check if a checkbox is checked and if so, uncheck it in the Selenium IDE
I think it would be easier if you had the code snippet, but see if you can understand: Takes the element, and checks if the property selected of him is true. If it is, you click on it. elemQueVcQuer…
seleniumanswered Wellington Fernandes 101 -
1
votes1
answer1680
viewsA: C# SELENIUM - How to read elements of a web page by keyword mention
I’m not sure I understand your problem... Play the result of your findElements on a Collection and do a for each on it. On each item (a) of Collection use Getattribute("href") to get the link I will…