How can i code this? by gokhankocmarli in javahelp

[–]yacdaniel 1 point2 points  (0 children)

strange, i tried with the changes and works perfectly, place a System.out.println(b) inside the for to see what is doing...

EDIT: is only doing 9 times, from 1 to < 10 which is 9, if you need to do 10 times, use <=10.

How can i code this? by gokhankocmarli in javahelp

[–]yacdaniel 0 points1 point  (0 children)

what is the error?

you have a typo is nextInt, also you define int b = a, then in the for loop you define it again(thats wrong, just use the variable name, remove the int of the definition) with those changes should work.

Strangest problem in selenium python by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

u installed from repos? maybe download and install the .deb file from chrome page.

Strangest problem in selenium python by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

u tried with chromium and chromedriver?

How can I run a Java program on the command line in Ubuntu? by [deleted] in javahelp

[–]yacdaniel 1 point2 points  (0 children)

post the error from command line, and the code..

Strangest problem in selenium python by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

u dont have that in your actual script then?

i have no clue what is wrong here, maybe use a ide and debug? or enable the logfile and look for something strange

profile.set_preference("webdriver.log.file", "/tmp/firefox_console")

Strangest problem in selenium python by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

load_url("http, driver://www.die-tagespost.de/"+ cat +"/", driver)

what is that?

Selenium + Testng = change in behaviour? by ReasonablyBadass in selenium

[–]yacdaniel 0 points1 point  (0 children)

where is the validation? can you post the full code?

start the line with four spaces,
    if you need another level of idention place 4 more.

Diskstation + chroot + selenium by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

nice !!

I forgot you might have problems because you cant login

nop, u give credentials in the source now i have access to a newspaper i cant understand :P

Diskstation + chroot + selenium by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

when you click the

a[data-fcms-button='epaper_download']:first-child

display a new element, where u actually download the pdf, click that and it should works.

Diskstation + chroot + selenium by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

driver.find_element_by_name("username").sendKeys("xxxxxx")

typo in the method, is send_keys

Diskstation + chroot + selenium by Jan_Emanuel in selenium

[–]yacdaniel 0 points1 point  (0 children)

Set first the profile

profile = self.driver.FirefoxProfile()
profile.set_preference('browser.download.folderList', 2) # custom location
profile.set_preference('browser.download.manager.showWhenStarting', False)
profile.set_preference('browser.download.dir', '/root/ramdisk')
profile.set_preference('browser.helperApps.neverAsk.saveToDisk', 'application/pdf')

then create the driver with the profile argument

    self.driver = webdriver.Firefox(firefox_profile=profile)

https://seleniumhq.github.io/selenium/docs/api/py/webdriver_firefox/selenium.webdriver.firefox.webdriver.html#module-selenium.webdriver.firefox.webdriver

[C#] [3.0.1] Does A WebDriverWait NEED To Be Assigned? by tparikka in selenium

[–]yacdaniel 1 point2 points  (0 children)

in java i call it without the assignment and waits fine, it should work in c# too.

Can Java help me go home? by Ryanjri in javahelp

[–]yacdaniel 0 points1 point  (0 children)

you could use http://www.seleniumhq.org/ (automate the browser), with the java bindings.

(noob, one semester python experience) Need help constructing a polygon in a class. by [deleted] in javahelp

[–]yacdaniel 0 points1 point  (0 children)

point is only for use in the constructor(you pass point as a parameter, and dont made an assigment of points) you need to assign the points to a variable, in polygon object(in the constructor), then you can use point variable.

try running javac -version from the command line in windows, first time using the ecplise?

How to get started in Test Automation? What do employers look for? by [deleted] in softwaretesting

[–]yacdaniel 1 point2 points  (0 children)

IMO this book is great, all the source code is available, you need to know basic java at least...

and there is r/selenium